7 Jul
2010
7 Jul
'10
8:23 a.m.
Le 07/07/2010 08:37, Alex Kapranoff a écrit :
Proper fix would be to apply this patch to your Dancer: diff --git a/lib/Dancer/Template/TemplateToolkit.pm b/lib/Dancer/Template/Templa index 0e092db..4bdb717 100644 --- a/lib/Dancer/Template/TemplateToolkit.pm +++ b/lib/Dancer/Template/TemplateToolkit.pm @@ -19,6 +19,7 @@ sub init { my $tt_config = { ANYCASE => 1, ABSOLUTE => 1, + ENCODING => 'utf8', %{$self->config}, };
And then specify "charset: utf8" in config.yml.
(to all: we should think about making charset: utf8 the default)
I agree, this should be fixed before we release 1.2 -- Alexis Sukrieh