💻 Software
Make emacs not remove the BOM from XML files
Fresh7 days ago
Mar 15, 20262207 viewsConfidence Score0%
0%
Problem
I use Emacs to edit an XML file that is also read by another application. The other application requires that the file start with a byte-order marker (BOM). However, Emacs seems to remove the BOM every time I edit the file. Is there a way to make Emacs leave the BOM alone?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Make emacs not remove the BOM from XML files
Low Risk
Emacs will write a BOM or not depending on what coding system it is using. Emacs automatically chooses the coding system it uses when visiting a file. You can change the coding system to utf-8-with-signature, which will tell Emacs to write the BOM. …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix