okhttp
okhttp copied to clipboard
isAscii is wrong for malformed surrogates
I just realized we map invalid UTF-16 chars to ?, so my length trick is incorrect. Fix is to iterate.
https://github.com/square/okio/blob/master/okio/src/commonMain/kotlin/okio/Utf8.kt#L102