BOM Header for UTF-8

Source: Internet
Author: User

Character encoding related information http://baike.baidu.com/view/1204863.htm

UTF-8 encoded files can be divided into no BOM and BOM two kinds of formats.

There is a BOM header storage or byte stream, it must be a Unicode character set encoding. The one that belongs to (Utf-8 or utf-16 or utf-32) can be judged by the head.

BOM in Utf-8 encoding file header, occupies three bytes, used to indicate that the file belongs to Utf-8 encoding

UTF-8 BOM is EFBBBF, because the UE loading UTF-8 file will be converted to UTF16, EFBBBF in Utf16 (Fffe BOM)

1, EditPlus to the BOM Header method Editor adjusted to UTF8 encoding format, the saved file will be preceded by a string of hidden characters (that is, the BOM), for the editor to identify whether the file is encoded in UTF8. Run EditPlus, click Tools, select Preferences, select files, UTF-8 identity option always delete signature,

Then the php file edited and saved after the PHP file is not with the BOM.

2, UltraEdit remove the BOM head method

After opening the file, save as an option in the encoding format selected (Utf-8 no BOM header), ok OK

UTF without BOM into a Utf-8 BOM batch processing tool

Ultracodingswitch Download Address: 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.