Crates.io | codepage |
lib.rs | codepage |
version | 0.1.2 |
source | src |
created_at | 2018-05-03 17:40:19.67342 |
updated_at | 2024-07-21 14:30:00.097786 |
description | Mapping between Windows code page numbers and encoding_rs character encodings |
homepage | https://docs.rs/codepage/ |
repository | https://github.com/hsivonen/codepage |
max_upload_size | |
id | 63611 |
size | 26,641 |
Mapping between Windows code page identifiers and
encoding_rs Encoding
s.
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.
Logically this crate should be at version 1.0, but it's not worth the hassle
to do a version number semver break when there's no actual API break. The
expectation is to do 1.0 when encoding_rs
1.0 comes along.
Please see the file named COPYRIGHT.
Generated API documentation is available online.
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.
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.
no_std
.Initial non-placeholder release.