Tony Mechelynck 写道: > - If you want one particular file to be recognized as UTF-8 not only by > Vim but also by other programs (let's say by other Windows editors such > as WordPad; or by browsers if the files are in HTML, CSS or even > plaintext) it helps if you use ":setlocal bomb" (or maybe ":setlocal > fenc=utf-8 bomb") before saving the file. Note that the BOM consists of > bytes with the high bit set, so the following paragraph never applies to > > Best regards, > Tony.
Note this does not work if you're programmer. utf-8 files should *not* contain the BOM, otherwise, it may not compile with gcc. By definition and by original design, utf-8 files should not have BOM, you can use utf-8 BOM only if you view your file with your eye and do not process the file with any program (such as compiler or lex parser, etc.) --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
