"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.