Open
Description
There is currently no way to (easily) convert from a BitArray that contains non-UTF codepoints to a String.
This is usable when, for example, you need to handle filepaths and you're not concerned with the exact naming but want a best-effort conversion.
In Rust there's OsStr
and Path
-derivations for this. One first step could be to implement something like Rust's to_string_lossy
fn to_lossy_string(bytes: BitArray) -> String {
todo
}
Metadata
Metadata
Assignees
Labels
No labels