[Catalyst] Double encoded UTF in config and string constants

Alex Povolotsky tarkhil at over.ru
Sat Nov 5 13:03:14 GMT 2011


On 11/05/11 16:43, Peter Flanigan wrote:
> On 05/11/11 10:41, Alexey Illarionov wrote:
>> On 05.11.2011 13:36, Alex Povolotsky wrote:
>>
>>> How do I make Confg::Any understand that my .conf file is in UTF-8 and
>>> how do I correctly put UTF-8 string constants into code?
>> __PACKAGE__->config( 'Plugin::ConfigLoader' =>  {
>>         driver =>  {
>>            'General' =>  { -UTF8 =>  1 }
>>         }
>>      });
> Add use utf8; to any Perl source code files that contain UTF-8 string
> constants

Thanks, it works.

Alex




More information about the Catalyst mailing list