Re: opening utf-8 files - chinese mb characters

From: Date: Thu, 09 Apr 2009 06:53:42 +0000
Subject: Re: opening utf-8 files - chinese mb characters
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-291274@lists.php.net to get a copy of this message
Merlin Morgenstern wrote: > I use windows right click for this. > > Actually I isolated the problem, but still I can't figure out how to > solve it. The page is not utf-8, but ugb2312. > > I am already sending the header through php: > header("Content-Type: text/html; charset=ugb2312"); > > And with apache http.conf: > AddDefaultCharset ugb2312 Shouldn't that be just gb2312 ? > However firefox still claims that it is utf-8 which is causing the > strange characters. The encoding informnation is in the headers sent - try using e.g. wget -S to see what your server is sending. Or sent me a link off-line, and I'll check for you. /Per -- Per Jessen, Zürich (10.0°C)

« previous php.general (#291274) next »