#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

#2575 in Encoding

Download history 13/week @ 2024-10-25 44/week @ 2024-11-01 28/week @ 2024-11-08 337/week @ 2024-11-15 36/week @ 2024-11-22 34/week @ 2024-11-29 55/week @ 2024-12-06 314/week @ 2024-12-13 269/week @ 2024-12-20 127/week @ 2024-12-27 410/week @ 2025-01-03 228/week @ 2025-01-10 63/week @ 2025-01-17 375/week @ 2025-01-24 517/week @ 2025-01-31 337/week @ 2025-02-07

1,324 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–12MB
~185K SLoC