Re: [Catalyst] Double encoded UTF in config and string constants

2011-11-05 Thread Alex Povolotsky
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::Config

Re: [Catalyst] Double encoded UTF in config and string constants

2011-11-05 Thread Peter Flanigan
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 =>

Re: [Catalyst] Double encoded UTF in config and string constants

2011-11-05 Thread Alexey Illarionov
Hi 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 } }

[Catalyst] Double encoded UTF in config and string constants

2011-11-05 Thread Alex Povolotsky
Hello! With Catalyst::Plugin::Unicode::Encoding, data from databases works fine. Templates in UTF-8 are also OK. However, data from .conf or UTF-8 constants in code still gets double-encoded. Data/constants are UTF-8, but perl for some reason does not set UTF-8 flag on them. What's more str