[Catalyst] Unicode::Encoding - utf8 "\xBA" does not map to Unicode
andrew at cleverdomain.org
Sat Mar 12 11:44:37 GMT 2011
On Friday, March 11, 2011 05:50:22 PM ryan lauterbach wrote:
> 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
$ perl -MURI::Escape -Mutf8 -le 'my $str = "K\xe9vyn"; utf8::encode($str);
More information about the Catalyst