genie-rs
genie-rs copied to clipboard
lang: detect ini file encoding
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