By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,043 Members | 1,126 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,043 IT Pros & Developers. It's quick & easy.

Correct charset type

P: n/a
how to set correct charset type for multi-language website? Site is on
cms, and same headers are dynamically generated for all pages. The
recommened charset type is <meta http-equiv="Content-Type"
content="text/html;charset=UTF-8">. But if use this type, one of
lanuages will not be displayed correctly. Probably this done via server
side scripting.

Oct 15 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
mistral wrote:
how to set correct charset type for multi-language website?
You either manage multiple encodings, or you use one that supports the
characters used in all the languages you are using.
Site is on cms, and same headers are dynamically generated for all pages.
The recommened charset type is <meta http-equiv="Content-Type"
content="text/html;charset=UTF-8">.
This should be handled in HTTP, not HTML.
But if use this type, one of lanuages will not be displayed correctly.
Sounds like you are claiming UTF-8 without writing UTF-8. Hard to say
without an example.

What does this have to do with JavaScript though?

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Oct 15 '06 #2

P: n/a
"David Dorward wrote:
"
mistral wrote:
how to set correct charset type for multi-language website?

You either manage multiple encodings, or you use one that supports the
characters used in all the languages you are using.
Site is on cms, and same headers are dynamically generated for all pages.
The recommened charset type is <meta http-equiv="Content-Type"
content="text/html;charset=UTF-8">.

This should be handled in HTTP, not HTML.
But if use this type, one of lanuages will not be displayed correctly.

Sounds like you are claiming UTF-8 without writing UTF-8. Hard to say
without an example.

What does this have to do with JavaScript though?

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
-------------

yes, its a true, there is no javascript involved. Can no find clear and
detail documentation how it should work. Headers need by handled in
HTTP, not in HTML? Charset type in html does not make sense?

mistral

Oct 15 '06 #3

P: n/a
mistral wrote:
how to set correct charset type for multi-language website? Site is on
cms, and same headers are dynamically generated for all pages. The
recommened charset type is <meta http-equiv="Content-Type"
content="text/html;charset=UTF-8">. But if use this type, one of
lanuages will not be displayed correctly. Probably this done via server
side scripting.
While this is certainly not a Javascript matter, you may want to use
ISO-8859-1 if UTF-8 doesn't work. This is a server side issue, so if
your site have translation support, associate an encoding array along
with the language settings ; for example, in PHP, define some include
script that will define a constant with the required value (e.g.. :
charset.en.inc.php, charset.fr.inc.php, etc.)

Oct 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.