Http://baike.baidu.com/view/1204863.htm of character encoding related information
UTF-8 files can be divided into two formats: No BOM and BOM.
A storage or byte stream with a BOM header must be encoded in the Unicode Character Set. In the end belong to that one (UTF-8 or UTF-16 or utf-32), can be determined by the header.
In a UTF-8 encoded file, BOM occupies three bytes in the file header to indicate that the file belongs to UTF-8 encoding.
The BOM for the UTF-8 is efbbbf, because the UE loads the UTF-8 file to UTF16, and the above efbbbf in UTF16 is fffe (BOM for Unicode-Le)
1. How to remove the BOM header from editplus
After the editor is adjusted to the utf8 encoding format, a hidden character (BOM) is added before the saved file, which is used by the editor to identify whether the file is UTF-8 encoded.
Run editplus, Click Tools, select preferences, select files, UTF-8 ID select always Delete Signature,
Then, the edited and saved PHP file does not contain Bom.
2. How to remove the BOM header from ultraedit
After opening the file, select the encoding format of the Save As option (UTF-8 without BOM header). OK.
A batch processing tool for converting UTF without BOM to UTF-8 BOM
Ultracodingswitch: http://www.duote.com/soft/12486.html