Bug #10327: "urldecode" decodes url-encoded cyrillic strings incorrectly.

From: Date: Sat, 14 Apr 2001 17:52:23 +0000
Subject: Bug #10327: "urldecode" decodes url-encoded cyrillic strings incorrectly.
Groups: php.dev 
Request: Send a blank email to php-dev+get-51582@lists.php.net to get a copy of this message
From: nikamir@zmail.ru Operating system: FreeBSD 4.1-RELEASE PHP version: 4.0.3pl1 PHP Bug Type: *URL Functions Bug description: "urldecode" decodes url-encoded cyrillic strings incorrectly. <?php //Write encoding echo "Src: ".urlencode("Çàïèñü óñïåøíî èçìåíåíà")."<br>\n"; //Wrong decoding echo "Src-Dst: ".urldecode(urlencode("Çàïèñü óñïåøíî èçìåíåíà"))."<br>\n"; //Write encoding of wrong decoding. See the difference!!! echo "Src-Dst-Src: ".urlencode(urldecode(urlencode("Çàïèñü óñïåøíî èçìåíåíà")))."<br>\n"; ?> './configure' '--without-x' '--enable-track-vars' '--with-apache=../apache_1.3.14rusPL30.0' '--with-mod_charset' '--with-gd' '--enable-ftp' '--with-mysql=/usr/local' '--with-pcre-regex' Here you can see dump of phpinfo() function in our system. http://www.77rus.ru/manager/questions/a.php -- Edit Bug report at: http://bugs.php.net/?id=10327&edit=1

« previous php.dev (#51582) next »