encoded
Rust macros converting character encodings at compile time
install
usage
const BYTES: & = shift_jis!;
assert_eq!;
For more information, see the documentation.
Rust macros converting character encodings at compile time
cargo add encoded
const BYTES: &[u8] = encoded::shift_jis!("漢字");
assert_eq!(BYTES, b"\x8a\xbf\x8e\x9a");
For more information, see the documentation.