From:             vesely at tana dot it
Operating system: Irrelevant
PHP version:      Irrelevant
PHP Bug Type:     URL related
Bug description:  urlencode should not do non-ascii characters

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 bug report at http://bugs.php.net/?id=27018&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27018&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27018&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27018&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27018&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27018&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27018&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27018&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27018&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27018&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27018&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27018&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27018&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27018&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27018&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27018&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27018&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27018&r=float

Reply via email to