Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Chrome (0.23 sec)

  1. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

        val mediaType = parse("text/plain; charset=utf-8; charset=utf-16")
        assertEquals("UTF-8", mediaType.charsetName())
      }
    
      /**
       * 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'")
    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)
Back to top