Registry / utility / local-encoding

local-encoding

JSON →
library0.2.0rscratesunverified

A Rust library for encoding and decoding strings with local charset, useful for working with ANSI strings on Windows.

# Cargo.toml [dependencies] local-encoding = "0.2.0"
INSTALL
IMPORT
SIG · LOCAL-ENCODING
L
local-encoding
utilityrustv0.2.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.

Encoder
use local_encoding::Encoder;

Encodes a UTF-8 string into a local charset (e.g., Windows-1251).

use local_encoding::Encoder; fn main() { let encoder = Encoder::new("windows-1251").unwrap(); let encoded = encoder.encode("Привет").unwrap(); println!("Encoded: {:?}", encoded); }
Debug
Known issues
gotchaOnly supports a limited set of encodings; may panic on unsupported names
fix
Check the documentation for supported encodings and handle errors gracefully
affects: >=0.1.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
local-encoding — cargo add local-encoding · libregistry