NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
CGI.pm (Score:1)
CGI.pm decodes the non-standard (and invalid according to RFC 3986) pct escape into a UTF-8 octet string, but it doesn't decode it into perl unicode string. I think the current behavior is desirable since the data can contain any octets in any encoding.
--
chansen
Re: Unicode URLs, wtf? (Score:1)
What sort of encoding is that? I mean, I can see it's the Unicode codepoint preceded by %u, but which standard backs this? I've never encountered this before.
Here's my take on it:
Re: (Score:1)
It usually comes from broken javascript applications that uses escape() instead of encodeURI()
escape("\u263A") -> %u263A
encodeURI("\u263A") -> %E2%98%BA
--
chansen
:utf-8 ? (Score:1)
Did you try using use 'CGI qw/ :utf8 /;'? That seems to work the way you want with CGI 3.49 (at least it seems to on my box).
Re: (Score:1)
Nope. I'd never noticed the option. My bad!