- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for unicodeByteString (0.09 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyTest.kt
val text = "eile oli oliiviõli" val body = text.toResponseBody("text/plain; charset=UTF-8".toMediaType()) assertThat(body.string()).isEqualTo(text) } @Test fun unicodeByteString() { val text = "eile oli oliiviõli" val body = text.toResponseBody() assertThat(body.byteString()).isEqualTo(text.encodeUtf8()) } @Test fun unicodeByteStringWithCharset() {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.9K bytes - Click Count (0)