#codec #page #decoding #string #locale #encoding-rs

encoding-utils

A utils to help with encoding and decoding os strings and more

1 unstable release

0.1.0 Jul 16, 2024

#2101 in Encoding

MIT license

4KB

Encoding utils

A utils to help with encoding and decoding os strings and more.

  • on windows it will use GetACP to get the code page, and return the Encoding instance from encoding_rs crate.
  • on linux, we should detect the encoding from the locale, and return the Encoding instance from encoding_rs crate.
  • on macOs, it seems that the encoding is always UTF-8, so we can always get the Encoding instance from encoding_rs crate.

Dependencies

~3–11MB
~173K SLoC