Re: [Catalyst] More unicode problems (uri_for)

2007-12-28 Thread Knut-Olav Hoven
On Friday 28 December 2007 17:56:45 Andrew Rodland wrote: > On Monday 24 December 2007 07:58:34 am Knut-Olav Hoven wrote: > > I wasn't very clear on this, sorry. > > "Check my å" is not inside the code, it comes from my "po/mo"-files > > (i18n). > > > > It looks actually more like this: > > > >  $c

Re: [Catalyst] More unicode problems (uri_for)

2007-12-28 Thread Andrew Rodland
On Monday 24 December 2007 07:58:34 am Knut-Olav Hoven wrote: > I wasn't very clear on this, sorry. > "Check my å" is not inside the code, it comes from my "po/mo"-files (i18n). > > It looks actually more like this: > >  $c->redirect( >   $c->uri_for( >     '/login', >     {error_msg => $c->loc("Ch

Re: [Catalyst] More unicode problems (uri_for)

2007-12-24 Thread Knut-Olav Hoven
On Monday 24 December 2007 11:06:20 Oleg Pronin wrote: > It seems your problem is that your string "Check my å" is not in perl's > internal format (uri_for expects it). Just UTF-8 octets. > Always use utf-8 flagged strings inside your application. > > for example, this should work: > > The followin

Re: [Catalyst] More unicode problems (uri_for)

2007-12-24 Thread Oleg Pronin
It seems your problem is that your string "Check my å" is not in perl's internal format (uri_for expects it). Just UTF-8 octets. Always use utf-8 flagged strings inside your application. for example, this should work: The following code: $c->redirect( $c->uri_for( '/login', {error_msg

[Catalyst] More unicode problems (uri_for)

2007-12-21 Thread Knut-Olav Hoven
The solution to my last problem (attached) brought up a new problem regarding UTF-8. = Problem = The following code: $c->redirect( $c::uri_for( '/login', {error_msg => "Check my å"} ); ); Gives me this URL in my browser: http://localhost:3000/login?error_msg=Check+my+%C3%83%C