What is the meaning of "BOM header information output of UTF-8 "?
Source: Internet
Author: User
What is the meaning of "BOM header information output of UTF-8"? what is the meaning of "BOM header information output of UTF-8, UTF-8 encoding header will have two special characters by default, these two special characters is bom, look at this explanation: http://hi.baidu.com/%CE%D2%B5%C4%B5%C6 "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.
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.