Emacs is adding BOM 0xFEFF to your XML file

When you open an XML file in Emacs, it tries to detect the encoding and may display Chinese characters.   If you look at it hexl-mode, you will also see that Emacs has secretly added 0xFEFF to the beginning of your file.  Nasty!

The solution (or workaround) is to use file-find-literally when you open the file.

(Ref: https://unix.stackexchange.com/questions/189061/emacs-automatically-adding-bom-to-xml-file/516465#516465)

No comments: