genie-rs icon indicating copy to clipboard operation
genie-rs copied to clipboard

lang: detect ini file encoding

Open goto-bus-stop opened this issue 6 years ago • 0 comments

INI files use the machine's local encoding by default, similarly to AoC itself. This patch detects the encoding of these files using the chardet crate.

TODO:

  • [x] Detect the encoding over the entire file instead of line-by-line; at the moment, the test fails because one line is detected as a Thai encoding

goto-bus-stop avatar Aug 02 '19 15:08 goto-bus-stop