What is the meaning of "BOM header information output of UTF-8 "?

Source: Internet
Author: User
"UTF-8 BOM header information output" What is the meaning of this sentence Ah "UTF-8 BOM header information output" What is the meaning of this sentence ------ solution -------------------- UTF-8 encoding header by default there will be two special characters, these two special characters are bom ------ solution -------------------- look at this explanation: hi.baidu.com % CE % D "UTF-8 BOM header information output" what does this sentence mean?
What does "BOM header information output of UTF-8" mean?

------ Solution --------------------
The UTF-8 header contains two special characters by default. the two special characters are bom.
------ Solution --------------------
Let's look at this explanation:
Http://hi.baidu.com/%CE%D2%B5%C4%B5%C6%C5%DD%C1%C1%C1%CB/blog/item/9c1660ee5db2b03cadafd5e7.html
------ Solution --------------------
I remember if PHP was stored in the UTF-8 BOM format, there would be a blank line at the top of the page (at least I was doing this under IE8)
------ Solution --------------------
So you will like notepad ++
------ Solution --------------------
It is best not to save the utf-8PHP file as a BOM header of the UTF-8.
Otherwise, you will encounter errors when using session, header, and compressed output in the program.
The BOM header is only a File ID, which is added to the beginning of the file. An ordinary editor is invisible, but it does exist and will be output at the beginning. It is because it is in the header and will be output at the beginning, it will cause errors when session, header, and compressed output are used.

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.