ini-parser
ini-parser copied to clipboard
Encoding Problem
Hello, When I use ini-parser on a .ini file containing "Démo" in value of a section, it returns me to "?" instead of the normally expected "é"
file (in attachment): [Section] value=Démo
Can i specify the encoding mode ? Than
ks for you help
The function ReadFile can take a second parameter for encoding.
I tried your file with "iso-8859-1", which is western europe like this:
IniData data = parser.ReadFile("Datarun.ini", Encoding.GetEncoding(28591));
That gives back the right characters.
You could encode your ini-files as UTF-8 as well and use Encoding.UTF8.