Bom header for UTF-8

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.