▲ | gavinsyancey 18 hours ago | |||||||||||||||||||||||||
WTF-8 is actually a real encoding, used for encoding invalid UTF-16 unpaired surrogates for UTF-8 systems: https://simonsapin.github.io/wtf-8/ | ||||||||||||||||||||||||||
▲ | ptx 2 hours ago | parent | next [-] | |||||||||||||||||||||||||
Yeah, that had me confused for a bit. And you would never use "charset=wtf-8" (as in the title for this page) because the spec says: "Any WTF-8 data must be converted to a Unicode encoding at the system’s boundary before being emitted. UTF-8 is recommended. WTF-8 must not be used to represent text in a file format or for transmission over the Internet." | ||||||||||||||||||||||||||
▲ | bjackman 17 hours ago | parent | prev [-] | |||||||||||||||||||||||||
I believe this is what Rust OsStrings are under the hood on Windows. | ||||||||||||||||||||||||||
|