Skip Menu |

This queue is for tickets about the Dancer-Template-Tenjin CPAN distribution.

Report information
The Basics
Id: 65686
Status: resolved
Priority: 0/
Queue: Dancer-Template-Tenjin

People
Owner: Nobody in particular
Requestors: KAPPA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.4
Fixed in: (no value)



Subject: UTF-8 templates are broken with current Dancer
I am using Dancer 1.3010 and config.yml attached to this bug. My templates are in UTF-8 but the output is broken. Looks like UTF-8 templates are read as latin1 and each byte gets interpreted separately. I also attach a simple index.tt and a screenshot of the result.
Subject: config.yml
# This is the main configuration file of your Dancer app # env-related settings should go to environments/$env.yml # all the settings in this file will be loaded at Dancer's startup. # Your application's name appname: "zheglov" # The default layout to use for your application (located in # views/layouts/main.tt) layout: "kappa" # when the charset is set to UTF-8 Dancer will handle for you # all the magic of encoding and decoding. You should not care # about unicode within your app when this setting is set (recommended). charset: "UTF-8" # template engine # simple: default and very basic template engine # template_toolkit: TT template: "tenjin" #template: "template_toolkit" #engines: # template_toolkit: # encoding: 'utf8' # start_tag: '[%' # end_tag: '%]'
Subject: index.tt
Download index.tt
application/octet-stream 17b

Message body not shown because it is not plain text.

Subject: screenshot1.png
Download screenshot1.png
image/png 4.6k
screenshot1.png
Sorry for the delay. This was a Tenjin problem which has been resolved in the latest version (0.070001). Dancer::Template::Tenjin was updated (and should hit CPAN in a few hours) with a new version which tests this (actually with one of your tests), but you only really need to update Tenjin.