Re: UTF-8 With content-type text/xml problem.
| From: | Barry | Date: | Fri, 21 Jul 2006 13:49:16 +0000 |
| Subject: | Re: UTF-8 With content-type text/xml problem. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239678@lists.php.net to get a copy of this message | ||
Mathijs schrieb:
Hello ppl, I have a big prob. I have a page which post some input. This input can be UTF-8 like chinese or other utf-8 chars. Also i need it to return UTF-8 and it has to be xml. For some strange reason this isn't working. Small example. PHP Code: <?php header('Content-Type: text/xml; charset=utf-8'); print '<?xml version="1.0" encoding="utf-8" ?>'."\n"; print '<test><data>'.$_GET['test'].'</data></test>'."\n"; ?> as GET var fill in something like ?test=éëêæ This will break it.. Only Opera does a good job. Firefox and IE both can't handle it. If i remove the header Firefox goes well. IE Still can't handle it. I Just need simple XML with UTF8 data. PS: This also breaks database saving, it doesn't save correct. And i have mbstring installed. Thx in advance. Is the output also UTF-8 encoded?-- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)