Re: UTF 8 support - enable-zend-multibyte ( was Re: [PHP] php bug from 2003 still alive?! - )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



haliphax wrote:
On Mon, Mar 30, 2009 at 12:34 PM, Merlin Morgenstern
<merlin_x@xxxxxxxxxxx> wrote:
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, Merlin

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.



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.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux