Registry / utility / cesu8
library1.1.0rscratesunverified

Convert to and from CESU-8 encoding, a variant of UTF-8 used in some legacy systems.

# Cargo.toml [dependencies] cesu8 = "1.1.0"
INSTALL
IMPORT
SIG · CESU8
C
cesu8
utilityrustv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from_cesu8
use cesu8::from_cesu8;

Decodes a CESU-8 byte slice into a Rust `String`.

use cesu8::from_cesu8; fn main() -> Result<(), Box<dyn std::error::Error>> { let cesu8_bytes = &[0xC0, 0x80]; // CESU-8 for null let utf8_string = from_cesu8(cesu8_bytes)?; println!("{}", utf8_string); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
cesu8 — cargo add cesu8 · libregistry