Log In · Register

 
 
Closed TopicStart new topic
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
 
Maccabee
post Sep 6 2009, 12:11 AM
Post #2


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



Its really not a big deal. It not even an error just a warning telling you it may cause problems in older broswers. If you really want to fix it just remove

CODE
<meta http-equiv="content-type" content="text/html; charset=utf-8" />


But I wouldnt. Everyone uses it. I twont cause your site any problems.
 
sunshine07
post Sep 6 2009, 05:33 AM
Post #3


Sunshine07
**

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



But, I have seen other people using it, yet they don't get that warning. I can't understand why?
 
synapse
post Sep 6 2009, 07:36 AM
Post #4


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 #5


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.
 
Maccabee
post Sep 6 2009, 12:18 PM
Post #6


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



QUOTE(sunshine07 @ Sep 6 2009, 05:33 AM) *
But, I have seen other people using it, yet they don't get that warning. I can't understand why?

They are using it unnecessarily. No one is looking at the source coe of your site. They are looking at your content. dont sweat the small stuff. the company I intern for doesnt use validators. If they did they would get tons of warnings and maybe some errors, but as long as it works in all major browsers then there is no point.
 
fixtatik
post Sep 6 2009, 01:34 PM
Post #7


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



BOMs are hell when you're trying to deliver PHP headers or cookies, since it's an invisible character that sends header info before PHP. If you're using Windows Notepad, you'll have to use something else to save it as UTF-8. You need to copy the code from all of your files, paste it into a new document in a text/HTML editor that doesn't save byte-order marks, and resave it (if you simply open the file in another editor and save it, it won't work).
 
sunshine07
post Sep 6 2009, 08:18 PM
Post #8


Sunshine07
**

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



Thank you so much everyone for your replies.
I think I'll just leave up the BOM..

Topic can be closed.
 
jiyong
post Sep 6 2009, 08:40 PM
Post #9


사랑해 ~ 我愛你 ♥
*****

Group: Design Staff
Posts: 825
Joined: Jan 2007
Member No: 492,587



Topic closed and moved. PM me if you want it reopened again.
 

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