[Dancer-users] Problem with PLACK
Alex Kapranoff
kapranoff at gmail.com
Wed Jul 7 15:32:09 CEST 2010
On Wed, Jul 7, 2010 at 12:23, Alexis Sukrieh <sukria at sukria.net> wrote:
> 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
>
Since Igor confirmed this fixes his problem, I just sent a pull request to
you about Dancer::Template::TemplateToolkit.
As per defaulting "charset" setting to "utf8" I am not sure yet it will not
break some rare cases. If you think we may allow some breakage for those
people who ACCIDENTALLY get correct results with not so correct code then I
would recommend this new default and may provide code and doc path.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20100707/282e9e99/attachment.htm>
More information about the Dancer-users
mailing list