Re: About charset setting and replacing
- From: Jack <mrdemeanour@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 14 Jul 2006 11:54:41 +0100
gmclee@xxxxxxxx wrote:
Hi there, I am writing a program to load HTML from file and send it
to IE directly. I've met some problem in charset setting. Most of
HTML have charset "us-ascii", for some reason, some UNICODE TEXT
will be inserted into the HTML before sending to IE. The problem is
1) Can I specify special charset for some component, e.g. <span
charset="UTF-8"> SOME UNICODE HERE</spand>
1. UTF-8 isn't a charset, it's an encoding.
2. The UTF-8 encoding includes and encompasses all of US-ASCII.
3. Encodings apply to pages, not to HTML fragments.
If you create a page that is encoded as UTF-8, and serve it as UTF-8,
US-ASCII characters will automatically be rendered correctly.
What I don't understand is what you mean by "send it to IE directly".
Are you writing a server? If so, then you need to look into how to serve
pages encoded as UTF-8 (and that would be off-topic here).
--
Jack.
.
- Follow-Ups:
- Re: About charset setting and replacing
- From: gmclee
- Re: About charset setting and replacing
- References:
- About charset setting and replacing
- From: gmclee
- About charset setting and replacing
- Prev by Date: Re: About charset setting and replacing
- Next by Date: Re: About charset setting and replacing
- Previous by thread: Re: About charset setting and replacing
- Next by thread: Re: About charset setting and replacing
- Index(es):
Relevant Pages
|