It is because the BOM character is added before the file is saved.
The UTF-8 does not need BOM to indicate the byte order, but BOM can be used to indicate the encoding method. The UTF-8 code for the character "Zero Width no-break space" is ef bb bf. So if the receiver receives a byte stream starting with ef bb bf, it will know that this is UTF-8 encoding.
Windows uses BOM to mark the encoding of text files.
At present, many new versions of software support Bom, but many software still do not support Bom.
It can be seen that a good text editor is also important when standardization comes. editplus is obviously insufficient because it does not support BOM selection. Software such as emeditor and UE (UltraEdite-32) is superior to editplus. In addition, we use a lot of Dreamweaver for web pages, and there is no Bom option in MX or earlier versions. This is only available in the new version. So many of my friends once worried about it. In addition to Web applications, desktop software and web communication are also involved. The BOM options of emeditor are as follows: