okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

isAscii is wrong for malformed surrogates

Open swankjesse opened this issue 5 years ago • 0 comments

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

swankjesse avatar Oct 31 '20 11:10 swankjesse