embedded-sdmmc-rs icon indicating copy to clipboard operation
embedded-sdmmc-rs copied to clipboard

Support different codepages

Open thejpster opened this issue 2 years ago • 1 comments

Currently we assume that short file names contain valid UTF-8, which is not always true.

We should have some kind of generic type param for a codepage convertor which can do fn convert_from(byte: u8) -> char and fn convert_to(ch: char) -> Result<u8, EncodingError>. Users could either stuff in a CodePage 437 or ISO-8859-1 converter, or something that can dynamically switch code page.

If you have multiple partitions with different codepages on the same disk, we probably can't help you.

thejpster avatar Dec 19 '23 23:12 thejpster

Technically we assume short names contain valid ISO-8859-1.

thejpster avatar Oct 06 '24 17:10 thejpster