- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testCharsetNameIsSingleQuoted (0.48 sec)
-
okhttp/src/test/java/okhttp3/MediaTypeTest.kt
} /** * This is invalid according to RFC 822. But it's what Chrome does and it avoids a potentially * unpleasant IllegalCharsetNameException. */ @Test fun testCharsetNameIsSingleQuoted() { val mediaType = parse("text/plain;charset='utf-8'") assertEquals("UTF-8", mediaType.charsetName()) } @Test fun testParseDanglingSemicolon() { val mediaType = parse("text/plain;")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.5K bytes - Viewed (0)