#localization #shift-jis #windows-1252 #windows-1251 #iso-8859

macro encoded

Macros converting character encodings at compile time

3 releases

0.4.2 Dec 7, 2022
0.4.1 Dec 5, 2022
0.4.0 Dec 4, 2022

#317 in #localization

MIT/Apache

14KB
143 lines

encoded

Rust macros converting character encodings at compile time

install

cargo add encoded

usage

const BYTES: &[u8] = encoded::shift_jis!("漢字");
assert_eq!(BYTES, b"\x8a\xbf\x8e\x9a");

For more information, see the documentation.

Dependencies

~3.5MB
~124K SLoC