urldecode problem :(
| From: | Rosen | Date: | Fri, 06 Jun 2003 12:19:25 +0000 |
| Subject: | urldecode problem :( | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150483@lists.php.net to get a copy of this message | ||
HI,
I'm using "urldecode" function to decode string from
"getenv("QUERY_STRING");", but part of
it is in cyrrilic (windows-1251) charset.
I have following code:
$a="%D1%81%D1%87%D0%B5%D1%82%D0%BE%D0%B2%D0%BE%D0%B4%D0%BD%D0%B0+%D0%BA%D1%8
A%D1%89%D0%B0";
$b="%d1%ee%f4%f2%f3%e5%f0";
echo "a=" . urldecode($a);
echo "<br>b=" . urldecode($b);
On the second string it works correctly, but on first it don't.
These two vars are getted from two different pages ( as refferers ).
I think the problem could be in encoding used in two pages.
Can someone help me ?
Thanks,
Rosen