Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 7903
Status: resolved
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Escaping of utf8 characters
Download (untitled) / with headers
text/plain 411b
The javascript escape() function seems to escape unicode characters >255 differently than URI::Escape::uri_escape_utf8 does. The attached html/js sample escapes the euro sign and all tested browsers (Mozilla/1.6 and Opera on Linux, MSIE 6 on Windows) return "%u20AC" as result, whereas uri_escape_utf8 returns the encoded 3-byte-representation. So my question: who is right, who is wrong? Regards, Slaven
Download js_escape.html
text/html 278b
Download (untitled) / with headers
text/plain 117b
In http://www.mail-archive.com/libwww%40perl.org/msg01780.html Roy said "They are not standard, and never will be."


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.