#codec #page #decoding #string #locale #os

encoding-utils

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

1 unstable release

0.1.0 Jul 16, 2024

#2316 in Encoding

Download history 107/week @ 2024-07-22 7/week @ 2024-07-29 2/week @ 2024-08-26 43/week @ 2024-09-09 52/week @ 2024-09-16 20/week @ 2024-09-23 13/week @ 2024-09-30 30/week @ 2024-10-07 9/week @ 2024-10-14 13/week @ 2024-10-21 42/week @ 2024-10-28 23/week @ 2024-11-04

90 downloads per month

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
~176K SLoC