Re: Return XML using PHP and Content-Type with UTF-8 breaks the UTF-8
| From: | nicolas figaro | Date: | Thu, 20 Jul 2006 07:23:17 +0000 |
| Subject: | Re: Return XML using PHP and Content-Type with UTF-8 breaks the UTF-8 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239613@lists.php.net to get a copy of this message | ||
Mathijs a écrit :
Hello there, I Have an problem with UTF-8 and XML. I Output perfect XML (according to IE, Opera and Firefox). I use the Content-Type header with "text/xml; charset=utf-8". For some reason this breaks UTF-8 output. When i remove it it works. But i need the text/xml header. Hi,could you check which encoding your script is saved with ? I saw some strange things when printing some iso-8859 strings with a php script saved in utf-8. N F
If i save an document as .xml with the same contents as UTF-8 it works. Is this a known problem? Thx in advanced.