Preventing UTF-8 BOM (byte order mark, EF BB BF)


#1

Hello. I was wondering how can I prevent atom from prepending BOM (byte order mark, EF BB BF) to modified files? Our team uses UTF-8 w/o BOM for all files and it’s very annoying that atom forces BOM.


#2

Atom doesn’t force a BOM on UTF-8 encoded files.

Repro Steps

  1. Open Atom
  2. Create a new file
  3. Type test into the new file
  4. Save the file as test.txt with Cmd+S
  5. Open a Terminal
  6. Enter the command hexdump -C test.txt

Expected and Actual: Five bytes in the file one each for t, e, s, t and LF

[~] hexdump -C test.txt
00000000  74 65 73 74 0a                                    |test.|
00000005

Test executed on Atom v1.0.3-a791809 on Mac OS X 10.10.4.