Return XML using PHP and Content-Type with UTF-8 breaks the UTF-8
| From: | Mathijs | Date: | Wed, 19 Jul 2006 14:27:43 +0000 |
| Subject: | Return XML using PHP and Content-Type with UTF-8 breaks the UTF-8 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-239574@lists.php.net to get a copy of this message | ||
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.
If i save an document as .xml with the same contents as UTF-8 it works.
Is this a known problem?
Thx in advanced.