Click here to get back home

browsers don't follow the charset specification

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
browsers don't follow the charset specification Xiaotian Sun 03-10-2005
Posted by Xiaotian Sun on March 10, 2005, 10:19 am
Please log in for more thread options


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 still
use ISO-8859-1.

What did I do wrong?

Thanks,

Xiaotian


Posted by Steve Pugh on March 10, 2005, 6:32 pm
Please log in for more thread options



>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 still
>use ISO-8859-1.

But if your server is sending out a real content-type header the meta
tag will be ignored.

>What did I do wrong?

You tried to fake something that should have been done properly.

        Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor



Posted by Andreas Prilop on March 10, 2005, 7:24 pm
Please log in for more thread options


On Thu, 10 Mar 2005, Xiaotian Sun wrote:

> 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 still
> use ISO-8859-1.

You need to set up your *web server* correctly to send the right
charset parameter:
http://www.w3.org/International/O-HTTP-charset.html
http://ppewww.ph.gla.ac.uk/~flavell/charset/ns-burp.html
Please refer to a comp.infosystems.www.servers... group for details.

The <meta charset> thingy is superfluous; get rid of it.

--
Top-posting.
What's the most irritating thing on Usenet?



Posted by Xiaotian Sun on March 10, 2005, 10:43 am
Please log in for more thread options


Andreas Prilop wrote:
> On Thu, 10 Mar 2005, Xiaotian Sun wrote:
>
>
>>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 still
>>use ISO-8859-1.
>
>
> You need to set up your *web server* correctly to send the right
> charset parameter:
> http://www.w3.org/International/O-HTTP-charset.html
> http://ppewww.ph.gla.ac.uk/~flavell/charset/ns-burp.html
> Please refer to a comp.infosystems.www.servers... group for details.
>
> The <meta charset> thingy is superfluous; get rid of it.
>

I'm not an expert on html or web servers, but that was actually what I
suspected. The thing is that nowhere on the w3 web pages taling about
this <meta> thing mentioned about web server.

anyways, the problem is that i don't have the control over the web
server. it's our department server. maybe I should talk to our IT staff.


Posted by Andreas Prilop on March 10, 2005, 7:51 pm
Please log in for more thread options


On Thu, 10 Mar 2005, Xiaotian Sun wrote:

> anyways, the problem is that i don't have the control over the web
> server. it's our department server. maybe I should talk to our IT staff.

You do not need to control the whole web server but only your own
directory. For example with Apache, you can define the encoding
via the .htaccess file. Please post your question to
<news:comp.infosystems.www.servers.unix>
or whatever type your server is.

--
Top-posting.
What's the most irritating thing on Usenet?




Similar ThreadsPosted
Character set specification and server transcoding January 23, 2005, 5:00 am
Empty Anchors, I can't find a W3C specification for it April 7, 2007, 7:39 am
Nždoesn´t follow textanchors June 8, 2005, 10:50 am
Follow-up to "Update help and Advice" September 27, 2007, 10:16 am
Document trailers : can anything legitimately follow August 6, 2004, 5:36 pm
UL in LI in UL in LI - follow up to nesting multiple elements inside of UL November 5, 2004, 3:09 pm
I follow the following steps to converting from HTML to XHTML March 8, 2005, 12:17 am
Charset Mismatch November 7, 2004, 10:13 am
ISO CHARSET PROBLEM November 8, 2005, 10:13 am
@charset rule October 6, 2007, 9:31 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap