[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

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 } } });

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(

Re: [Catalyst] Catalyst and XMLRPC

2011-11-05 Thread David Schmidt
I believe this is the way to go ... http://search.cpan.org/~bphillips/Catalyst-Action-REST-0.93/lib/Catalyst/Controller/REST.pm On 4 November 2011 14:30, Jose Luis Martinez jlmartinez-lists-catal...@capside.com wrote: El 04/11/2011 13:59, Dmitry L. escribió: Catalyst::Cookbook and found advice

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

2011-11-05 Thread Aristotle Pagaltzis
* Alex Povolotsky tark...@over.ru [2011-11-05 11:05]: What's more strange for me, manually upgrading string to UTF-8 with utf8::upgrade does not help. utf8::upgrade only changes the internal storage format of the string but not its meaning. If it contained encoded text before, it will still

[Catalyst] nginx configuration issues

2011-11-05 Thread Jesse Sheidlower
I'm porting a site from Apache/mod_perl to nginx/FastCGI, and am having some configuration problems whilst closely following the instructions in the Cat docs and wiki (specifically, Catalyst::Manual::Deployment::nginx::FastCGI and

Re: [Catalyst] nginx configuration issues

2011-11-05 Thread Janne Snabb
On Sat, 5 Nov 2011, Jesse Sheidlower wrote: How do I configure nginx to handle ssl requests for Cat apps through Cat? And is there some neat way of handling the configuration, so that I don't have to put it in two places (the regular server on 80 and the https server on 443)? If I