This article to this Baidu experience:
Address: http://jingyan.baidu.com/article/3f16e003c3dc172591c103e6.html
Om primarily handles browser windows and frames, but in fact, browser-specific JavaScript extensions are considered part of the BOM. The following shows how to remove the BOM information from the header of the PHP file.
Tools/Materials
- Dreamever Software;
- Computer.
Method/Step
Open the document with BOM information;
Click the menu bar to modify the menu, and then select: page Properties item;
Select Title/Coding item;
including the Unicode signature (BOM) (S) Remove the previous tick, then click OK, BOM information removal success!
Other methods:1, EditPlus to the BOM head method
After the editor is resized to UTF8 encoded format, the saved file will be preceded by a string of hidden characters (also known as BOMs), used by the editor to identify whether the file is encoded in UTF8. Run EditPlus, click Tools, select Preferences, select File, UTF-8 identity Select Always delete signature,Then the PHP files are edited and saved by the PHP file is not with the BOM.
2, UltraEdit removal of BOM head method
After opening the file, Save As option in the encoding format selected (Utf-8 without BOM header), OK is ok
It's easy to get rid of the BOM head.
Let's talk about UTF8 's BOM information.
BOM refers to the PHP file itself is stored in a BOM with the UTF-8, the normal page of Chinese garbled way is generally not caused by this reason.
Header ("content-type:text/html; Charset=utf-8 ");
This sentence controls how HTML output pages are encoded,
The BOM is only available when the "notepad" store is stored as UTF-8 in Windows, which can be deleted with the Winhex of the first 2 bytes.
In Dreamweaver inside the encoding settings can be set whether with a BOM, generally as long as PHP output is not a picture (GDI Stream), BOM will not cause problems.
GDI Stream appears as a red fork if there are additional characters at the beginning.
Use Dreamever to remove file header BOM (BOM) information from Baidu Experience