- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for charsetName (0.15 sec)
-
okhttp/src/test/java/okhttp3/MediaTypeJvmTest.kt
assertNull(mediaType.charsetName()) } @Test fun testUnsupportedCharset() { val mediaType = parse("text/plain; charset=utf-wtf") assertNull(mediaType.charsetName()) } @Test fun testCharsetNameIsDoubleQuotedAndSingleQuoted() { val mediaType = parse("text/plain;charset=\"'utf-8'\"") assertNull(mediaType.charsetName()) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MediaTypeTest.kt
@Test fun testDoubleQuotesAreSpecial() { val mediaType = parse("text/plain;a=\";charset=utf-8;b=\"") assertNull(mediaType.charsetName()) } @Test fun testSingleQuotesAreNotSpecial() { val mediaType = parse("text/plain;a=';charset=utf-8;b='") assertEquals("UTF-8", mediaType.charsetName()) } @Test fun testParseWithSpecialCharacters() {
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)