Correct charset type

M

mistral

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.
 
D

David Dorward

mistral said:
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?
 
M

mistral

"David Dorward wrote:
"
You either manage multiple encodings, or you use one that supports the
characters used in all the languages you are using.


This should be handled in HTTP, not HTML.


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?
-------------

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
 
Y

Yanick

mistral said:
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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top