How to remove BOM in Intellij Idea

tsds picture tsds · Oct 24, 2011 · Viewed 14.2k times · Source

I'd like to remove Bite Order Masks from my
UTF-8 files in Intellij IDEA, how can I do this?

The problem is that if I'm trying to do it via other editors (e.g. Akelpad),
when I modify the file later in IDEA it somehow remembers that BOM
was present and adds it to my file again (((

Answer

SuperDuck picture SuperDuck · Jul 2, 2015

Tested on PHPStorm 8:

Right click on a file in the project tree, click on "Remove BOM"

(Not sure if it exists on the base platform, comments will be helpful)