473,322 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Correct charset type

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
3 2391
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: lawrence | last post by:
How do I get PHP to tell the server that when I echo text to the screen, I need for the text to be sent as UTF-8? How does Apache know the right encoding when all the text is being generated by...
8
by: Ben Sharvy | last post by:
I don't reallly understand charsets, but I see that you are supposed to declare one. I am putting a paper up in HTML. It uses some special characters, like umlauts and diacriticals. The biggest...
35
by: The Bicycling Guitarist | last post by:
My web site has not been spidered by Googlebot since April 2003. The site in question is at www.TheBicyclingGuitarist.net/ I received much help from this NG and the stylesheets NG when updating the...
28
by: Xiaotian Sun | last post by:
I added the following line to the header of my html file <meta http-equiv="content-type" content="text/html; charset=utf-8"> hoping browsers will use UTF-8 encoding. But all browsers I tried...
4
by: Earl T | last post by:
When I try to get the netscape version for version 7, I get the HttpBrowserCapabilities class returning the version as 5 and not 7. (see code and output below) CODE HttpBrowserCapabilities...
2
by: vunet.us | last post by:
I translate my website to German and some ASCII characters are not translated by my browser. For example I see this: &#x00FC; I use charset: <meta http-equiv="Content-Type" content="text/html;...
8
by: howa | last post by:
Just found a funny things.. in HTML4's dtd, http://www.w3.org/TR/html4/strict.dtd language is not valid, i.e. <!ELEMENT SCRIPT - - %Script; -- script statements --> <!ATTLIST...
15
by: Nightcrawler | last post by:
I am currently using the HttpWebRequest and HttpWebResponse to pull webpages down from a few urls. string url = "some url"; HttpWebRequest httpWebRequest =...
70
mideastgirl
by: mideastgirl | last post by:
I have recently been working on a website for an honors association, and have a lot of difficulty but have found help from those on this site. I would like to see if I can get some more help on a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.