473,659 Members | 3,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

unicode meta tag, http header

If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?
Jul 20 '05 #1
30 4836
On 8 Jul 2004 10:04:14 -0700, Anon <q_***********@ yahoo.co.uk> wrote:
If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?

It's literally an HTTP-EQUIV. In cases like a free webspace, where you
cannot modify the actual headers, this is an equivalent. Doing it
server-level is preferable.
Jul 20 '05 #2
Anon wrote:
If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?


1) As an inferior method of specifying it for people who can't or won't
get their server to send proper HTTP headers.

2) Because some authoring tool excreted this code into the crappy HTML
it created.

3) Because the page author saw other pages using it and mindlessly
imitated them in cargo-cult manner.

4) Because the page needs to be used in non-HTTP contexts, such as being
browsed locally on a hard disk or CD-ROM, or uploaded to be validated,
where no HTTP headers are present so the META tag must do, inferior as
it may be.

What's really fun is when a page is served with contradictory
information in the HTTP headers and its META tag; in that case, some
browsers (e.g., Mozilla) follow the standards properly and respect the
HTTP headers, ignoring the contradictory META information, while others
(e.g., MSIE) do the opposite, leading to pages that seem to "work" in
one browser but come out garbled in others.
Jul 20 '05 #3
Neal wrote:
On 8 Jul 2004 10:04:14 -0700, Anon <q_***********@ yahoo.co.uk> wrote:
If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?


It's literally an HTTP-EQUIV. In cases like a free webspace, where you
cannot modify the actual headers, this is an equivalent. Doing it
server-level is preferable.


Of course, it also stays if the page is saved if it's in a META element.

Sometimes there isn't a server (e.g. html files on a CD) so it should be
used there.

--
Matt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #4
"Daniel R. Tobias" <da*@tobias.nam e> wrote:
What's really fun is when a page is served with contradictory
information in the HTTP headers and its META tag; in that case, some
browsers (e.g., Mozilla) follow the standards properly and respect
the HTTP headers, ignoring the contradictory META information, while
others (e.g., MSIE) do the opposite, leading to pages that seem to
"work" in one browser but come out garbled in others.


Are you sure? We know that MSIE violates the HTTP protocol, but does it
do that in this respect? It seems to me that IE 6 correctly gives
preference to the charset parameter in an actual HTTP header, when such a
header is in conflict with a corresponding META tag.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #5
On Thu, 8 Jul 2004, Jukka K. Korpela wrote:
"Daniel R. Tobias" <da*@tobias.nam e> wrote:
What's really fun is when a page is served with contradictory
information in the HTTP headers and its META tag; in that case, some
browsers (e.g., Mozilla) follow the standards properly and respect
the HTTP headers, ignoring the contradictory META information, while
others (e.g., MSIE) do the opposite, leading to pages that seem to
"work" in one browser but come out garbled in others.


Are you sure? We know that MSIE violates the HTTP protocol, but does it
do that in this respect?


The last browser which I recall to have been violating the specified
priority order in this regard was Netscape 4.* in its earlier
versions; but that was corrected at some point, and was then
OK on later versions.

As this has been a special interest of mine for a considerable time, I
*think* I'd have been aware of any IE version which got it wrong.
(Although the little grey cells aren't so good as they used to be...)

(There -have- been some oddities of IE behaviour in the reload/refresh
area.)
Jul 20 '05 #6
Alan J. Flavell wrote:
As this has been a special interest of mine for a considerable time, I
*think* I'd have been aware of any IE version which got it wrong.
(Although the little grey cells aren't so good as they used to be...)


Try these pages:
http://arbiter.wipo.int/domains/deci...2001-0915.html
http://www.quicktopic.com/25/D/cD8dwc52A3p.html
http://www.25hoursaday.com/draft-oba...scheme-01.html

They all have contradictory HTTP and meta information regarding their
character encoding. When I tried them in Mozilla, they were rendered in
accordance with their HTTP-announced character encoding, which caused
some gibberish to appear scattered throughout the document where
characters were intended to be which were actually encoded in the manner
suggested by the meta tag. However, MSIE rendered all of these
documents "correctly" (in the DWIM sense, not the standards-compliant one).

--
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info/
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/
Jul 20 '05 #7
On 8 Jul 2004, Anon wrote:
Subject: unicode meta tag, http header
Why "unicode"?
If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?


I wonder what's the point of specifying a nonsense <meta charset> in
these examples from Google's cache:
<http://google.com/search?q=cache: www.unics.uni-hannover.de/nhtcapri/cyrillic.win>
<http://google.com/search?q=cache: www.unics.uni-hannover.de/nhtcapri/greek.html7>

Google is getting sicker and sicker. They are more concerned about
useless mirrors in other countries (see sig) than about indexing
non-Latin-1 documents correctly.

--
No longer evil: http://www.google.com.ly

Jul 20 '05 #8
On Thu, 8 Jul 2004, Daniel R. Tobias wrote:
Try these pages:
OK, I'm looking at this one:
http://www.quicktopic.com/25/D/cD8dwc52A3p.html They all have contradictory HTTP and meta information regarding their
character encoding.
This one has ISO-8859-1 on the HTTP header, and utf-8 in the meta, and
is evidently really in utf-8.
When I tried them in Mozilla, they were rendered in
accordance with their HTTP-announced character encoding,
Confirmed. (Win Moz 1.7).
However, MSIE rendered all of these documents "correctly"
Perhaps "as intended" is a clearer way of putting it, since
your "correctly" means "not to specification".
(in the DWIM sense, not the standards-compliant one).


Not here. I'm seeing the same clutter as on Mozilla. And
View->Encoding shows "Western European (ISO)". This is Win IE6 (with
current security fixes applied).

If I manually set the encoding to utf-8, then it looks as intended.
But if I reload, the encoding reverts to iso-8859-1. I'd say that
(for all its other faults) this IE is performing to specification in
this respect.

Jul 20 '05 #9
JRS: In article <61************ **************@ posting.google. com>, seen
in news:comp.infos ystems.www.authoring.html, Anon
<q_***********@ yahoo.co.uk> posted at Thu, 8 Jul 2004 10:04:14 :
If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?


(a) There may be no HTTP headers, for example if the file is displayed
locally without using a server;

(b) The HTTP headers may not be under author control, for example in
sites such as mine;

(c) It is more logical to have the meaning of a file depend only on what
is within the file, and not on auxiliary variable data.

Accepted practice may, of course, differ.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk DOS 3.3, 6.20; Win98. ©
Web <URL:http://www.merlyn.demo n.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demo n.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demo n.co.uk/batfiles.htm> - also batprogs.htm.
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2669
by: Erik Neves | last post by:
I need help with utf-8 before i go bald and the rest of my hair turns white! Platform: Mac OS X 10.2.6 Safari 1.0 (v85) Internet Explorer:mac 5.2.3 (5815.1) Apache 2.0.47 PHP 4.3.2 (Apache 2 module) libiconv 1.8
1
4007
by: Cezary | last post by:
Hello. I was read PHP manual, but i'm not sure yet. Here is my meta tags in html: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2"> <META HTTP-EQUIV="Expires" CONTENT="0"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
8
5265
by: Bill Eldridge | last post by:
I'm trying to grab a document off the Web and toss it into a MySQL database, but I keep running into the various encoding problems with Unicode (that aren't a problem for me with GB2312, BIG 5, etc.) What I'd like is something as simple as: CREATE TABLE junk (junklet VARCHAR(2500) CHARACTER SET UTF8)); import MySQLdb, re,urllib
27
5139
by: EU citizen | last post by:
Do web pages have to be created in unicode in order to use UTF-8 encoding? If so, can anyone name a free application which I can use under Windows 98 to create web pages?
4
6059
by: webdev | last post by:
lo all, some of the questions i'll ask below have most certainly been discussed already, i just hope someone's kind enough to answer them again to help me out.. so i started a python 2.3 script that grabs some web pages from the web, regex parse the data and stores it localy to xml file for further use.. at first i had no problem using python minidom and everything concerning
2
2469
by: slavi.marinov | last post by:
Hello all, I have a simple question on PHP and the way it handles strings. Let's say I have a database and a php script that communicates with the database. The database has some kind of character encoding - let's say UTF-8, UTF-16, or something different. When I select some string from the database, for example:
18
34117
by: Ger | last post by:
I have not been able to find a simple, straight forward Unicode to ASCII string conversion function in VB.Net. Is that because such a function does not exists or do I overlook it? I found Encoding.Convert, but that needs byte arrays. Thanks, /Ger
1
1276
by: encoding | last post by:
véúóëÜöéúóëÜöéúóëÜöéúóëÜöéúóëÜö Hi! I read the folowing discussion: http://groups.google.com/group/comp.infosystems.www.authoring.html/browse_thread/thread/e310d85640e54eb3/b50e36acb6d68931?lnk=gst&q=Can+an+HTML+source+file+be+specified+in+unicode+%3F+&rnum=1#b50e36acb6d68931 Wich is about charset encoding and HTML. I am looking for a way to make my online service compatible for any
3
2288
by: roland.saad | last post by:
Hi Everyone, I have been trying to build a website that has multilingual support using the LAMP setup. I have created tables that store language information and correlate different strings ids with languages. The strings are all VARCHAR with unicode (utf8) encoding. I have tried all the ways that I could think of and I have checked every website to no avail. What I am trying to do is simply open a connection to the database (using...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8528
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2752
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.