Help - Search - Members - Calendar
Full Version: Validation Error
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
sunshine07
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
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
But, I have seen other people using it, yet they don't get that warning. I can't understand why?
tcunningham
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
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
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
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
Thank you so much everyone for your replies.
I think I'll just leave up the BOM..

Topic can be closed.
elletricity
Topic closed and moved. PM me if you want it reopened again.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.