Unicode Signature BOM - What is the BOM? BOM is the abbreviation of Byte Order Mark. It is the standard mark used to identify the encoding in the UTF encoding scheme. In UTF-16, it was originally FF FE, and in UTF-8 it becomes EF BB BF. This flag is optional, and since UTF8 bytes have no order, it can be used to detect whether a byte stream is UTF-8 encoded. Microsoft does this detection, but some software does not and treats it as a normal character. Microsoft adds three bytes EF BB BF before its own UTF-8 format text files. Programs such as Notepad on Windows determine whether a text file is ASCII or UTF-8 based on these three bytes. However, this is just a mark made by Microsoft secretly. There is no such mark for UTF-8 text files on other platforms. Unicode signature BOM - How to view UTF-8 That is to say, a UTF-8 file may have a BOM or may not have a BOM, so how to distinguish them? ![]() 4: Open it with emeditor , select "Save As", and check whether Add Unicode Signature (bom) (G) under Encoding is checked. As shown in the figure: Unicode Signature BOM - Problems and Solutions when Applying in PHP |
<<: Detailed explanation of the top ten commonly used string functions in MySQL
>>: Solve the margin: top collapse problem in CCS
People who use virtual machines usually set up sh...
Table of contents explain: Summarize Replenish Un...
Now most projects have begun to be deployed on Do...
1. Basic structure: Copy code The code is as follo...
Many friends who have just started to make web pag...
I remember when I was interviewing for my current...
1. Introduction I have been studying the principl...
Shell is a program written in C language, which i...
This article example shares the specific code of ...
During the development process, if garbled charac...
This article uses examples to describe MySQL dupl...
1. View the renderings Select forward: Select bac...
When rendering Markdown before, I used the previe...
This article shares the installation and configur...
IE's conditional comments are a proprietary (...