Settings Editor saves mercurial.ini in UTF8
Created originally on Bitbucket by Anonymous
When trying to integrate our tool (ECMerge) with Mercurial, we tried to configure ECMerge as the differ and merger.
The graphical user interface considers the RC file and the .ini files as UTF8 files without signature. But Mercurial itself consider them as being coded in "local code page" (CP1252 here), if any accent is in the configuration file, Mercurial misbehaves (an accent 'é' in a path will be transformed to the matching UTF8 sequence and the program is not found).