On Aug 9, 10:13 am, Tony Mechelynck <[email protected]>
wrote:
> On 09/08/11 13:37, Carlo Trimarchi wrote:
>
> > Hi,
> > I developed a website with Vim, working both on linux and windows and
> > never had any problems. The other day someone else needed to edit some
> > files and tried to use Mac and Windows. Apparently in the files he
> > edited there is this Byte-Order Mark. I discovered this only via the
> > w3c validator that gave me this warning:
>
> > "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."
>
> That message is outdated. The BOM is supported in all Unicode encodings
> including UTF-8 by all "reasonably recent" browers. It is also part of
> the HTML standard. Some text editors (such as Notepad, I think) choke on
> it, but the answer to that is to use a better editor, such as Vim or
> even WordPad, which know about the BOM and handle it correctly, even in
> UTF-8.
>

Not true. W3C still explicitly recommends against using a BOM for
UTF-8 (but I don't remember the link off-hand, sorry, I think it was
either in the HTML4.01 or HTML5 spec somewhere). Even modern browsers
like Firefox and Opera choke on a BOM in UTF-8 files for XHTML served
as XML. Using a BOM for UTF-8 on the internet is a bad idea.

A BOM is however recommended and useful on UTF-16 or UTF-32 and the
like.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to