[Catalyst] uri_for and unicode

Alex Povolotsky tarkhil at over.ru
Tue Mar 9 10:26:24 GMT 2010


uri_for seems to have some troubles with unicode.

The following template part

<tr><td>[% item.name %]</td>
<a href="[% c.uri_for('/admin',formname,'edit', item.name) %]">edit</a>

result in warning

Use of uninitialized value within %URI::Escape::escapes in substitution 
iterator at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst.pm line 1268.

and, while displaying correct text in first column, drops every 
non-ascii character in uri_for output.


More information about the Catalyst mailing list