471,599 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,599 software developers and data experts.

What is the best fit charset for XHTML 1.0 Strict?

tjc0ol
26
Basically for xhtml 1.0 strict is charset="utf-8" but in my case the w3c validator although my website passed in validation but has error regarding this error:

"Byte-Order Mark found in UTF-8 File.

The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported. "

What is the best way to remove that error? UTF-8 reliable enough? or there are few charset out there that is more reliable than utf-8?
Thanks.
Nov 13 '07 #1
3 2039
drhowarddrfine
7,435 Expert 4TB
It has nothing to do with the charset and utf-8 is the best charset to use.
The BOM is inserted by your editor and you have to remove it. It's a few bytes at the beginning of the text. You might be able to remove it by just deleting it in your editor if you can see it. Otherwise, you need to look at your editor settings and tell it either to not insert the BOM when it saves as utf-8 or just save the text as ascii.
Nov 13 '07 #2
tjc0ol
26
It has nothing to do with the charset and utf-8 is the best charset to use.
The BOM is inserted by your editor and you have to remove it. It's a few bytes at the beginning of the text. You might be able to remove it by just deleting it in your editor if you can see it. Otherwise, you need to look at your editor settings and tell it either to not insert the BOM when it saves as utf-8 or just save the text as ascii.
I try it by saving as in notepad but the encoding has only few option, namely ANSI, Unicode, Unicode big endian and UTF-8, were can I find the ascii?
Nov 15 '07 #3
drhowarddrfine
7,435 Expert 4TB
ansi equals ascii. .
Nov 15 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Trvl Orm | last post: by
82 posts views Thread by Buford Early | last post: by
8 posts views Thread by pamela fluente | last post: by
10 posts views Thread by Robert Huff | last post: by
2 posts views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.