#encoding #ms-dos #read-only

cp437

Module for MSDOS (CP437) Encoding

2 releases

Uses old Rust 2015

0.1.1 May 29, 2016
0.1.0 May 29, 2016

#5 in #ms-dos

34 downloads per month
Used in 2 crates (via phetch)

MIT license

15KB
287 lines

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


	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

No runtime deps