Re: UTF 8 support - enable-zend-multibyte ( was Re: [PHP] php bug from 2003 still alive?! - )
| From: | Merlin Morgenstern | Date: | Mon, 30 Mar 2009 19:16:05 +0000 |
| Subject: | Re: UTF 8 support - enable-zend-multibyte ( was Re: [PHP] php bug from 2003 still alive?! - ) | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290861@lists.php.net to get a copy of this message | ||
haliphax wrote:
On Mon, Mar 30, 2009 at 12:34 PM, Merlin Morgenstern <merlin_x@fastmail.fm> wrote:HI, I am using a meta tag: <meta http-equiv="content-type" content="text/html; charset=UTF-8"> I have also configured apache: AddDefaultCharset utf-8 Also php: header('content-type: text/html; charset=utf-8'); Header: HTTP/1.x 200 OK Date: Mon, 30 Mar 2009 19:14:22 GMT Server: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.9 X-Powered-By: PHP/5.2.9 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=utf-8 The chinese characters which come directly out of the database are shown corretly. The chinese chars that are saved in a text file show up as a question mark.HI there, I now compiled php with zend multibyte. The trouble with the extra characters is now gone, but all special characters are now replaced with a questionmark! The document type shows utf-8, but somehow php seems not to pars the content OK. Does nobody have the same problem? Regards, MerlinPlease stop top-posting. Anyway, are you using a META tag codepage to tell the web browser what to do with those special characters? I'm not certain a DOCTYPE is going to handle everything.