#api #encoding-utils

encoding-utils

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

1 unstable release

0.1.0 Jul 16, 2024

#1961 in Encoding

Download history 162/week @ 2025-01-12 255/week @ 2025-01-19 186/week @ 2025-01-26 599/week @ 2025-02-02 775/week @ 2025-02-09 616/week @ 2025-02-16 861/week @ 2025-02-23 1836/week @ 2025-03-02 2116/week @ 2025-03-09 2859/week @ 2025-03-16 2323/week @ 2025-03-23 2100/week @ 2025-03-30 1996/week @ 2025-04-06 3510/week @ 2025-04-13 4008/week @ 2025-04-20 1930/week @ 2025-04-27

11,610 downloads per month
Used in service-manager

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–12MB
~182K SLoC