ID:               27018
 Updated by:       [EMAIL PROTECTED]
 Reported By:      vesely at tana dot it
-Status:           Open
+Status:           Bogus
 Bug Type:         URL related
 Operating System: Irrelevant
 PHP Version:      Irrelevant
 New Comment:

Use mb_encode_mimeheader() / iconv_mime_encode()

http://www.php.net/mb_encode_mimeheader
http://www.php.net/iconv_mime_encode.

just RTFM.




Previous Comments:
------------------------------------------------------------------------

[2004-01-23 07:21:09] vesely at tana dot it

Description:
------------
Hi,
is it possible to reopen bug 6173?

Briefly, national characters are not field
separators in any url scheme. If they are
urlencoded, they may be traslated the wrong
way by users with incompatible code tables.

The answer to bug 6173 cites rfc1738, which is 10
years old and also says that

"   A mailto URL takes the form:
"      mailto:<rfc822-addr-spec>

The bug is relevant for urls like
mailto:[EMAIL PROTECTED]
that already violate rfc1738.

I prepared a test page in
http://www.tana.it/urlencoded.html

The problem could be solved by adding a function to
support rfc1342, that must be called before rawurlencode.

Thank you for your patience
Ale

Reproduce code:
---------------
rawurlencode("� is not e")

Expected result:
----------------
%3D%3Fiso-8859-1%3FQ%3F%3DE8%3F%3D%20is%20not%20e

Actual result:
--------------
%E8%20is%20not%20e


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27018&edit=1

Reply via email to