Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML5 character encoding problem 1

Status
Not open for further replies.

PeDa

Technical User
Oct 10, 2002
227
NL

I am trying (really only as an intelectual exercise) to convert my website (pdavis.nl) from HTML4 to HTML5. Although I include <!DOCTYPE html> and <meta charset=UTF-8> tags, the W3C Markup Validation Service detects the following errors:

Code:
Character Encoding mismatch!
The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation.
Warning Using windows-1252 instead of the declared encoding iso-8859-1.
Warning Legacy encoding windows-1252 used. Documents should use UTF-8.
Error Line 4, Column 20: Internal encoding declaration utf-8 disagrees with the actual encoding of the document (windows-1252).

I don't understand where the iso-8859-1 and windows-1252 references come from. Any suggestions welcome.

Peter D
 
Hello Olaf,

Thank you; fixed this by 'AddDefaultCharset utf-8' in my .htaccess

Peter D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top