'GitKraken file encoding

I use Visual Studio to develop my code. My files are encoded in UTF-8 with BOM.
As VS doesn't allow to stage hunk a files, I use GitKraken to do so.
But when I stage a hunk a file with GitKraken, the encoding of the file change from UTF-8 with BOM to Western European (Windows).
How to avoid GitKraken to change my file encoding?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source