UTF8 with BOM and no BOM

Source: Internet
Author: User

The UTF-8 does not require a BOM, although the Unicode standard allows the use of BOMs in UTF-8.
So UTF-8 is not included in the BOM is the standard form, in the UTF-8 file to place the BOM is mainly Microsoft's habit (by the way: the small end-order with the BOM UTF-16 called "unicode" and not detailed description, this is Microsoft's habit).
The BOM (byte order mark) is prepared for UTF-16 and UTF-32 and is used to mark the byte order (byte order). Microsoft uses the BOM in UTF-8 because it can distinguish between UTF-8 and ASCII encoding, but such files can be problematic in operating systems outside of Windows.

The difference between "utf-8" and the utf-8"with BOM is that there is no BOM. There is no U+feff at the beginning of the file.

UTF8 with BOM and no BOM

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.