#unicode #winapi #windows #character-encoding

codepage

Mapping between Windows code page numbers and encoding_rs character encodings

3 unstable releases

Uses old Rust 2015

0.1.1 Dec 2, 2018
0.1.0 Dec 2, 2018
0.0.1 May 3, 2018

#1748 in Encoding

Download history 11832/week @ 2023-12-04 11841/week @ 2023-12-11 10623/week @ 2023-12-18 8304/week @ 2023-12-25 12225/week @ 2024-01-01 16123/week @ 2024-01-08 15078/week @ 2024-01-15 16672/week @ 2024-01-22 16371/week @ 2024-01-29 14218/week @ 2024-02-05 14646/week @ 2024-02-12 15518/week @ 2024-02-19 16273/week @ 2024-02-26 19401/week @ 2024-03-04 15508/week @ 2024-03-11 16675/week @ 2024-03-18

68,782 downloads per month
Used in 64 crates (7 directly)

MIT/Apache

14KB
194 lines

Build Status docs.rs Apache 2 / MIT dual-licensed

codepage

Mapping between Windows code page identifiers and encoding_rs Encodings.

Why a Separate Crate?

This crate isn't part of encoding_rs itself in order to avoid scope creep for encoding_rs itself and to signal that Windows code page applicability of encoding_rs is secondary. It's not completely incidental due to Web history, but encoding_rs will prioritize compliance with the WHATWG Encoding Standard over matching the Windows system converters exactly. Still, encoding_rs is in practice useful for decoding legacy Windows data, because all the "ANSI code pages" that are the default for some Windows locale are present in the Encoding Standard, because those defaults have influenced the Web.

Licensing

Please see the file named COPYRIGHT.

API Documentation

Generated API documentation is available online.

Security Considerations

Only code page numbers whose corresponding labels map to the replacement encoding in the Encoding Standard map to the replacement encoding here, despite many other code page numbers referring to encodings with similar security problems.

Disclaimer

This is a personal project. It has a Mozilla copyright notice, because it's partially generated by the Python script in the encoding_rs repo. You should not try to read anything more into Mozilla's name appearing.

0.1.0

Initial non-placeholder release.

Dependencies

~3MB
~116K SLoC