How to prevent automatically included BOM in UTF-8 files saved with PyCharm

Hi, when I edit a UTF-8 file with PyCharm, it always adds a BOM whenever I save the file.

The problem I have is that when debbuging, there's an error in if the file contains a BOM : (<class 'SyntaxError'>, SyntaxError('invalid character in identifier', ('C:/x/y/x/a/api/', 1, 6, '#*coding=utf-8*\n')), None)

I guess I could use a byte-compatible encoding for my needs, but I'd like to know if it's a known issue.

thanks !

Version : Pycharm 3.4, Win7x64

Please sign in to leave a comment.