Log In · Register

 
Validation Error, Byte-Order Mark found in UTF-8 File?
sunshine07
post Sep 5 2009, 11:44 PM
Post #1


Sunshine07
**

Group: Member
Posts: 22
Joined: Oct 2008
Member No: 690,489



I just ran my site through the HTML validator, and I got a warning about the UTF-8 encoded files. I don't know how I can get rid of this warning! Can someone please help me? Here's the validation link of my site - http://validator.w3.org/check?uri=http%3A%...ine&group=0
 
 
Start new topic
Replies
synapse
post Sep 6 2009, 07:36 AM
Post #2


Live long and prosper.
********

Group: Staff Alumni
Posts: 10,142
Joined: Apr 2007
Member No: 514,926



You should be using:

CODE
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

Which is supports the characters in the western European language.
 
mipadi
post Sep 6 2009, 12:13 PM
Post #3


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



QUOTE(tcunningham @ Sep 6 2009, 08:36 AM) *
You should be using:

CODE
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

Which is supports the characters in the western European language.

No -- because the file is UTF-8, so the OP should be using a UTF-8 encoding.

The issue is that many Windows file editors put a byte-order marker (BOM) at the beginning of a file to say, "Hey, this is UTF-8." But that's not really necessary or supported in all browsers/text editors, so you should remove it, but it's not really necessary.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: