Encoding utils
A utils to help with encoding and decoding os strings and more.
- on windows it will use
GetACPto get the code page, and return theEncodinginstance fromencoding_rscrate. - on linux, we should detect the encoding from the locale, and return the
Encodinginstance fromencoding_rscrate. - on macOs, it seems that the encoding is always
UTF-8, so we can always get theEncodinginstance fromencoding_rscrate.