Problems with UTF
| From: | mbneto | Date: | Mon, 28 Aug 2006 19:57:17 +0000 |
| Subject: | Problems with UTF | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-241161@lists.php.net to get a copy of this message | ||
Hi,
I have a php based script that is called from a html page via ajax.
Everything runs fine except when I use characters such as á that ends up
like A!
After searching and testing I found that if I remove the
encodeURIComponentfrom the javascript and replace with
escape everything works fine.
So the question is what can I do from PHP side to make it play nice with
those UTF encoded chars generated from encodeURIComponent? Since escape is
deprecated I'd like to find out before I have tons of files to change....
tks.