How to remove BOM in Intellij Idea

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)


There is no such action to remove BOM from UTF-8 files in IntelliJ IDEA. There was a bug that BOM is removed, but it was fixed a long time ago.

When you remove BOM externally, make sure the file is synchronized with editor, try File | Synchronize.

If IntelliJ IDEA still thinks that this file has BOM, please file an issue with the steps to reproduce.