embedded-sdmmc-rs
embedded-sdmmc-rs copied to clipboard
Support different codepages
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.
Technically we assume short names contain valid ISO-8859-1.