Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for characterEncoding (0.07 sec)

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

        assertThat(body.contentLength()).isEqualTo(expected.length.toLong())
        val buffer = Buffer()
        body.writeTo(buffer)
        assertThat(buffer.readUtf8()).isEqualTo(expected)
      }
    
      @Test
      fun characterEncoding() {
        // Browsers convert '\u0000' to '%EF%BF%BD'.
        assertThat(formEncode(0)).isEqualTo("%00")
        assertThat(formEncode(1)).isEqualTo("%01")
        assertThat(formEncode(2)).isEqualTo("%02")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top