On Friday, March 11, 2011 05:50:22 PM ryan lauterbach wrote:
> Hi,
> 
> I've read some threads about unicode, utf8 and query parameters but I
> don't understand it enough to fix on my own, so apologies for beating
> a dead horse.
> 
> When a URL contains a utf8 character in the query string such as
> ?first_name=K%E9vyn  (where %E9 is é, latin small e with acute),
> Unicode::Encoding barfs with  utf8 "\xE9" does not map to Unicode.

%E9 is not "a UTF-8 character". A properly encoded UTF-8 URL representation of 
'first_name=Kévyn' would be 'first_name=K%C3%A9vyn', which C::P::U::E will 
accept.

$ perl -MURI::Escape -Mutf8 -le 'my $str = "K\xe9vyn"; utf8::encode($str); 
print uri_escape($str)'
K%C3%A9vyn

Andrew

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to