Use Dreamever to remove file header BOM (BOM) information from Baidu Experience

Source: Internet
Author: User

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
  1. Open the document with BOM information;

  2. Click the menu bar to modify the menu, and then select: page Properties item;

  3. Select Title/Coding item;

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

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.