Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timglabisch/rust_cp437
cp437 encoding for rust
https://github.com/timglabisch/rust_cp437
Last synced: 3 months ago
JSON representation
cp437 encoding for rust
- Host: GitHub
- URL: https://github.com/timglabisch/rust_cp437
- Owner: timglabisch
- Created: 2016-05-29T18:28:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-30T22:16:25.000Z (almost 4 years ago)
- Last Synced: 2024-07-10T08:21:39.898Z (4 months ago)
- Language: Rust
- Size: 359 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- not-yet-awesome-rust - decode-only library
README
# Rust (readonly) support for the CP437 encoding
cp537 aka DOS-US / OEM-US was widley used ~1980.this crate supports reading the encoding in rust
# install
cp437 = "*"# example
```rust
let mut f = File::open("...").unwrap();
let mut bytes = f.bytes();
let mut r = Reader::new(&mut bytes);
println!("Kurzname {}", r.consume(12)); // Kurzname```
there is also a convert method you can use to convert a char byte by byte