browser charset or lang: simple problem, please help.

Author Message

Huadong Gai

Tuesday 10 August 2004 1:33:33 pm

I followed the documentation and set up a multi-language site: http://localhost/en for English and http://localhost/cn for Chinese.

When I access the Chinese site http://localhost/cn, the brower charset is always set utf-8. But I would like to set it to GB2312 or other simplified chinese charset by default. Most of my users will be using Chinese version of a web browser. I do not want them to change the browser charset everytime. How to do this for eZ Publish 3.4?

Thanks in advance.

Bård Farstad

Wednesday 11 August 2004 12:10:11 am

You will find information about how to set the character set here:
http://www.ez.no/ez_publish/documentation/configuration/configuration/language_and_charset/unicode_with_ez_publish

Allthough most browsers should work just fine with UTF-8. The browser will figure out the charset itself. ( Unless they have locked the browser to a specific charset )

--bård

Documentation: http://ez.no/doc

Huadong Gai

Wednesday 11 August 2004 9:18:29 am

Thanks for your quick response. I read and followed that document you provide.

I wonder whether I should change the header file (where is it) from

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

to something like

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

Will this work? Where is the header file for 3.4?

When I view my site, the default charset encoding is always UTF-8 unless I manully set to something else. When I view a Chinese site using the same browser, the charset encoding is GB2312. So I think the problem is not with the browser but with the site.

What do you think?

Bård Farstad

Thursday 12 August 2004 12:04:18 am

The meta data for charset should be automatically set, so you should not need to change this manually. You should only need to set the character sets as described in the documentation above.

--bård

Documentation: http://ez.no/doc

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.