How to Encoding!

J

Jim

Hello,

In WebPages using Unicode-8 what css tag I can use so that when
accessed on Internet the user does not need to click adjust encoding
in IE6. Thanks experts.
 
R

Ronx

You do not use CSS, you use a meta tag.
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

Change windows-1252 to whatever character set you wish to use.

However, if the server delivering the page includes a character set in its
HTTP headers, it may over-ride the character set defined in your page.

The only way to get symbols to render correctly 99.9% of the time is to code
them as entities. See http://www.w3schools.com/html/html_entitiesref.asp
 
J

Jim

Ron,
Thanks for your response. My meta tag is as follows:

<meta http-equiv="Content-Language" content="fa">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv=Content-Type content="text/html; charset=utf-8">

with the same meta tag, one server automatically displays Farsi
properly, but another server, shows gibrish and to see proper language
fonts, I have to click on IE6 Encoding and manually adjust to
Unicode-8.

Any more tricks I can set to show like the good server?

Thanks.
You do not use CSS, you use a meta tag.
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">

Change windows-1252 to whatever character set you wish to use.

However, if the server delivering the page includes a character set
in its
HTTP headers, it may over-ride the character set defined in your
page.

The only way to get symbols to render correctly 99.9% of the time is
to code
them as entities. See
http://www.w3schools.com/html/html_entitiesref.asp
 
R

Ronx

Try adding this meta tag:
<meta http-equiv="Content-Language" content="fa">
I do not know if it will make a difference.

Download HTML-Kit from www.chami.com (free) and open your page using
File->Open Url
Put your page address (for the "dodgy" server) in the Open Web or FTP Page
and tick the box Include HTTP Headers
Click OK

The page should open in code view, starting with HTTP/1.1 200 OK
The code between this and the <HTML> tag (or <!Doctype if you use it) are
the HTTP headers the server is sending.
If there is a charset entry then this may be over-riding the character set
in your page.
 
R

Ronx

A combination of specifying the character set, language and the direction
the text is written.
http://www.w3.org/TR/html4/charset.html#h-5.2 discusses character sets.

Language and direction is given by the lang and dir attributes
respectively.
http://www.w3.org/TR/html4/struct/dirlang.html#h-8.1

I recommend a pot of coffee before, and a beer after, reading these :)

--
Ron Symonds (Microsoft MVP - FrontPage)
Reply only to group - emails will be deleted unread.


"Rob Giordano (aka: Crash Gordon®)" <[email protected]>
wrote in message Only slightly OT.
how are RTL languages handled anyway, is it part of a character set, or
what?

curious

| Try adding this meta tag:
| <meta http-equiv="Content-Language" content="fa">
| I do not know if it will make a difference.
|
| Download HTML-Kit from www.chami.com (free) and open your page using
| File->Open Url
| Put your page address (for the "dodgy" server) in the Open Web or FTP Page
| and tick the box Include HTTP Headers
| Click OK
|
| The page should open in code view, starting with HTTP/1.1 200 OK
| The code between this and the <HTML> tag (or <!Doctype if you use it) are
| the HTTP headers the server is sending.
| If there is a charset entry then this may be over-riding the character
set
| in your page.
|
| --
| Ron Symonds (Microsoft MVP - FrontPage)
| Reply only to group - emails will be deleted unread.
|
|
| | > Ron,
| > Thanks for your response. My meta tag is as follows:
| >
| > <meta http-equiv="Content-Language" content="fa">
| > <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
| > <meta name="ProgId" content="FrontPage.Editor.Document">
| > <meta http-equiv=Content-Type content="text/html; charset=utf-8">
| >
| > with the same meta tag, one server automatically displays Farsi
| > properly, but another server, shows gibrish and to see proper language
| > fonts, I have to click on IE6 Encoding and manually adjust to
| > Unicode-8.
| >
| > Any more tricks I can set to show like the good server?
| >
| > Thanks.
| > | > You do not use CSS, you use a meta tag.
| > <meta http-equiv="Content-Type" content="text/html;
| > charset=windows-1252">
| >
| > Change windows-1252 to whatever character set you wish to use.
| >
| > However, if the server delivering the page includes a character set
| > in its
| > HTTP headers, it may over-ride the character set defined in your
| > page.
| >
| > The only way to get symbols to render correctly 99.9% of the time is
| > to code
| > them as entities. See
| > http://www.w3schools.com/html/html_entitiesref.asp
| >
| > --
| > Ron Symonds (Microsoft MVP - FrontPage)
| > Reply only to group - emails will be deleted unread.
| >
| >
| > | > > Hello,
| > >
| > > In WebPages using Unicode-8 what css tag I can use so that when
| > > accessed on Internet the user does not need to click adjust
| > encoding
| > > in IE6. Thanks experts.
| > >
| >
| >
|
|
 
Top