Thanks to visit codestin.com
Credit goes to lib.rs

#encoding-decoding #encoding-rs #string #os #osstring

encoding-utils

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

1 unstable release

0.1.0 Jul 16, 2024

#5 in #osstring

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

30,306 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–15MB
~201K SLoC