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
fixtatik
post Sep 6 2009, 01:34 PM
Post #2


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).
 

Posts in this topic


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