HighDots Forums  

Re: Content-Type META element (was: <FAQENTRY> Comments, suggestions on comp.lang.javascript FAQ)

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Re: Content-Type META element (was: <FAQENTRY> Comments, suggestions on comp.lang.javascript FAQ) in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Content-Type META element (was: <FAQENTRY> Comments, suggestions on comp.lang.javascript FAQ) - 10-18-2009 , 11:48 AM






Thomas 'PointedEars' Lahn wrote:

Quote:
meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"
[...]
The following browsers added the META element on save as test.html
according to the resource's HTTP Content-Type header:
I think they add it only if the document does not already contain character
encoding information. In my experience, it has become more and more common
to declare the encoding in the document (possibly large because authoring
software, content management systems and other software do that
automatically).

Moreover, it may depend on the mode of saving. IE 8 does not add the META
tag when saving "HTML only" but adds it (if missing) when saving "entire WWW
page".

Quote:
The test document, accessed as <http://localhost/tmp/test.php>, was:
A local document, when served by a local HTTP server, is probably OK for
testing, except that others cannot access it.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.