Re: About charset setting and replacing
- From: "Jukka K. Korpela" <jkorpela@xxxxxxxxx>
- Date: Sat, 15 Jul 2006 22:01:28 +0300
gmclee@xxxxxxxx <gmclee@xxxxxxxx> scripsit:
1. UTF-8 isn't a charset, it's an encoding.Anyway, the following meta is extract from some page (the source HTML
of the searching result of google)
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
The meta tag itself is correct, though it will be (by the specifications and in actual practice) ignored, if the server specifies a charset parameter in actual HTTP headers. You need to find out what the server does, typically by using an HTTP header viewer.
Anyway, UTF-8 is a "charset" in the technical sense that the HTTP header and its <meta> simulation uses the name "charset" for the parameter that specifies the character encoding. The choice of the name "charset" is unfortunate but cannot be changed any more.
What I mean is : insert some UNICODE (e.g. Asian Character) into the
HTML, so if the charset is US-ASCII, it cannot render the text
correctly.
You haven't understood the answers. You cannot change the encoding ("charset") in the midst of a document. Period. Stop trying.
Why cannot you simply use UTF-8 for the entire document? As explained, ASCII characters need not be changed in any way when you put them into an UTF-8 document.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
.
- References:
- About charset setting and replacing
- From: gmclee
- Re: About charset setting and replacing
- From: Jack
- Re: About charset setting and replacing
- From: gmclee
- About charset setting and replacing
- Prev by Date: Re: Preformatted text and line wrapping
- Next by Date: Re: Align Right
- Previous by thread: Re: About charset setting and replacing
- Next by thread: Re: About charset setting and replacing
- Index(es):
Relevant Pages
|