Re: About charset setting and replacing
- From: gmclee@xxxxxxxx
- Date: 14 Jul 2006 04:52:33 -0700
gmclee@xxxxxxxx wrote:Anyway, the following meta is extract from some page (the source HTML
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.
of the searching result of google)
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
2. The UTF-8 encoding includes and encompasses all of US-ASCII.What I mean is : insert some UNICODE (e.g. Asian Character) into the
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.
HTML, so if the charset is US-ASCII, it cannot render the text
correctly.
What I don't understand is what you mean by "send it to IE directly".I am sorry for my misleading you. I am writing a client which send the
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).
HTML code to IE with Microsoft IWebbrower2 and IHTMLDocument2
interfaces. With those interfaces, I can change the HTML of any page
dynamically.
.
- Follow-Ups:
- Re: About charset setting and replacing
- From: Steven Simpson
- Re: About charset setting and replacing
- From: Jukka K. Korpela
- Re: About charset setting and replacing
- References:
- About charset setting and replacing
- From: gmclee
- Re: About charset setting and replacing
- From: Jack
- 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
|