Re: Problems with UTF

From: Date: Thu, 31 Aug 2006 07:29:11 +0000
Subject: Re: Problems with UTF
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-241265@lists.php.net to get a copy of this message
:: top posted to be consistant:: I would go as far as configuring your default php.ini to send utf-8 as the default charset. Curt. On 8/28/06, Peter Lauri <lists@dwsasia.com> wrote:
Hi, Have you set header('Content-Type: text/html; charset=utf-8'); in your php script that you call via AJAX? -----Original Message----- From: mbneto [mailto:mbneto@gmail.com] Sent: Tuesday, August 29, 2006 2:57 AM To: php-general@lists.php.net Subject: [PHP] Problems with UTF 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.


« previous php.general (#241265) next »