Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • Yeah I found that when I googled it, but how do I remove them? Commented Jul 15, 2010 at 13:38
  • 12
    It doesn't remove the BOM, it ignores it. Commented Jun 23, 2013 at 22:19
  • Or the other way(ignore) could be change the encoding. Commented Oct 21, 2015 at 3:20
  • Windows Notepad (ugh) adds them; suggestion from a dup of this question is to use Notepad++, which allows setting "UTF-8 without BOM" as an encoding. Or use a Real Editor... (emacs!) :-) Commented Feb 12, 2016 at 15:26
  • 3
    That's exactly the issue, different character encodings use different bytes for the same characters. Read again the third paragraph of the answer. Commented Oct 7, 2017 at 17:18