- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 523 for utf8 (0.02 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/internal.kt
} internal fun MediaType?.chooseCharset(): Pair<Charset, MediaType?> { var charset: Charset = Charsets.UTF_8 var finalContentType: MediaType? = this if (this != null) { val resolvedCharset = this.charset() if (resolvedCharset == null) { charset = Charsets.UTF_8 finalContentType = "$this; charset=utf-8".toMediaTypeOrNull() } else { charset = resolvedCharset } }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri May 30 21:28:20 GMT 2025 - 3.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt
} @Test fun stringExplicitCharset() { val body = body("00000068000000650000006c0000006c0000006f", "utf-32be") assertThat(body.string()).isEqualTo("hello") } @Test fun stringBomOverridesExplicitCharset() { val body = body("0000feff00000068000000650000006c0000006c0000006f", "utf-8") assertThat(body.string()).isEqualTo("hello") } @Test fun stringBomUtf8() {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 12.4K bytes - Click Count (0) -
guava/src/com/google/common/io/ByteArrayDataOutput.java
void writeChars(String s); @Override void writeUTF(String s); /** * @deprecated This method is dangerous as it discards the high byte of every character. For * UTF-8, use {@code write(s.getBytes(StandardCharsets.UTF_8))}. */ @Deprecated @Override void writeBytes(String s); /** Returns the contents that have been written to this instance, as a byte array. */ byte[] toByteArray();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 27 20:25:25 GMT 2024 - 1.9K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/project/ExtensionDescriptorBuilderTest.java
} @AfterEach void tearDown() throws Exception { builder = null; } private InputStream toStream(String xml) { return new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8)); } @Test void testEmptyDescriptor() throws Exception { String xml = "<extension></extension>"; ExtensionDescriptor ed = builder.build(toStream(xml)); assertNotNull(ed);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 2.9K bytes - Click Count (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportAggregationWorkAction.kt
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Jun 02 09:57:54 GMT 2025 - 5.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/FilesTest.java
Files.write(ASCII, temp, UTF_8); assertThrows(IllegalArgumentException.class, () -> Files.copy(temp, temp)); assertEquals(ASCII, Files.toString(temp, UTF_8)); } public void testCopyIdenticalFiles() throws IOException { File temp1 = createTempFile(); Files.write(ASCII, temp1, UTF_8); File temp2 = createTempFile(); Files.write(ASCII, temp2, UTF_8); Files.copy(temp1, temp2);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 22.1K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt
"Content-Transfer-Encoding", "binary", ), "... contents of file2.gif ..." .toByteArray(StandardCharsets.UTF_8) .toRequestBody("image/gif".toMediaType()), ).build(), ).build() assertThat(body.boundary).isEqualTo("AaB03x") assertThat(body.type).isEqualTo(MultipartBody.FORM)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 10.5K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteArrayDataOutput.java
void writeChars(String s); @Override void writeUTF(String s); /** * @deprecated This method is dangerous as it discards the high byte of every character. For * UTF-8, use {@code write(s.getBytes(StandardCharsets.UTF_8))}. */ @Deprecated @Override void writeBytes(String s); /** Returns the contents that have been written to this instance, as a byte array. */ byte[] toByteArray();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 27 20:25:25 GMT 2024 - 1.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
Files.write(ASCII, temp, UTF_8); assertThrows(IllegalArgumentException.class, () -> Files.copy(temp, temp)); assertEquals(ASCII, Files.toString(temp, UTF_8)); } public void testCopyIdenticalFiles() throws IOException { File temp1 = createTempFile(); Files.write(ASCII, temp1, UTF_8); File temp2 = createTempFile(); Files.write(ASCII, temp2, UTF_8); Files.copy(temp1, temp2);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 22.1K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java
@DisplayName("ConsoleIcon") class ConsoleIconTest { @Test @DisplayName("should return Unicode icons when terminal supports UTF-8") void shouldReturnUnicodeWhenTerminalSupportsUtf8() { Terminal mockTerminal = mock(Terminal.class); when(mockTerminal.encoding()).thenReturn(StandardCharsets.UTF_8); assertEquals("✓", ConsoleIcon.SUCCESS.getIcon(mockTerminal));Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Jul 15 09:35:08 GMT 2025 - 6.8K bytes - Click Count (0)