On Mon, Mar 30, 2009 at 12:34 PM, Merlin Morgenstern
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?
Please 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.
I am using a meta tag:
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
I have also configured apache:
header('content-type: text/html; charset=utf-8');
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
Keep-Alive: timeout=15, max=100
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
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php