RE: [ot] chinese web pages encoding

"Bjorn Stabell" <[email protected]>
Newsgroups gmane.org.user-groups.linux.beijing
Organization Exoweb
Message-ID <002901c425bc$d2244c10$4500a8c0@BjornLaptop>
Colin:
> According to my understanding of this, Matteo want to publish 
> some web pages with Chinese characters and want them to be 
> displayed correctly in the browsers of Chinese users, right? 
> So my suggestion is to set the charset to gb2312 in the web 
> pages. Otherwise users may encounter chaos of chars.
> 
> I tried a file with UTF-8 encoding and opened it in my 
> browser, plz see the attachment for result. I have to set the 
> charset to gb2312 by hand in my browser to see the correct page.

Colin, you have to set the content-type with charset encoding in the
HTTP response.  Many browsers don't care about encoding specified in the
HTML itself.  (Although you could try specifying the character encoding
in the DOCTYTPE entitty as well.)

Regards,
-- 
Bjorn


_______________________________________________
blug-general list
[email protected]
http://list.beijinglug.org/cgi-bin/mailman/listinfo/blug-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.