Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for manualCharset (0.08 sec)

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

            .build()
        val buffer = Buffer()
        body.writeTo(buffer)
        buffer.skip(3) // Skip "a=b" prefix.
        return buffer.readUtf8(buffer.size - 1) // Skip the "c" suffix.
      }
    
      @Test
      fun manualCharset() {
        val body =
          FormBody.Builder(StandardCharsets.ISO_8859_1)
            .add("name", "Nicolás")
            .build()
        val expected = "name=Nicol%E1s"
    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