[Catalyst] Plugin::I18N and UTF-8
Alex Povolotsky
tarkhil at over.ru
Mon Mar 24 20:53:27 GMT 2008
Knut-Olav Hoven wrote:
> On Monday 24 March 2008 14:33:47 Alex Povolotsky wrote:
>
>> Knut-Olav Hoven wrote:
>>
>>> On Monday 24 March 2008 08:08:06 Alex Povolotsky wrote:
>>>
>>>> Hello!
>>>>
>>>> Having completed UTF-8 quest successfully, I've tried to do I18N and
>>>> found the same double-UTF-encoding trouble.
>>>>
>>>> I've put UTF-8 strings into I18N/ru.po file,and configured Plugin:I18N
>>>>
>>>> Plugin::I18N:
>>>> maketext_options:
>>>> Decode: 0
>>>> Encoding: utf-8
>>>>
>
> Remove the "Encoding: utf-8" line
>
> According to the manual of Locale::Maketext::Simple, the Encoding parameter
> implies Decode => 1
>
>
Well, after some switching on and off, it settled down to work :)
BTW: Locale::Maketext::Extract mentions some [%|l%] TT filter; but I've
found no clue in Template::Toolkit manual on writing my own filter...
Alex.
More information about the Catalyst
mailing list