3 ms·
Why this over, say, CESU-8? Compatibility with UTF-8 systems, I guess?
by TazeTSchnitzel 11y ago
Why this over, say, CESU-8? Compatibility with UTF-8 systems, I guess?
- i80and 11y agoAccording to the article, they wanted a superset of UTF-8, which CESU-8 is not. https://simonsapin.github.io/wtf-8/#cesu-8 https://simonsapin.github.io/wtf-8/#cesu-8
- SimonSapin 11y agoYes. For example, this allows the Rust standard library to convert &str (UTF-8) to &std::ffi::OsStr (WTF-8 on Windows) without converting or even copying data.