- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 206 for Ascii (0.02 seconds)
-
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
String result = DocumentUtil.encodeUrl("http://example.com/{id}"); assertEquals("http://example.com/%7Bid%7D", result); } @Test public void test_encodeUrl_unicodeChars() { // Non-ASCII characters are percent-encoded; encoding depends on request context String result = DocumentUtil.encodeUrl("http://example.com/\u00D6sterreich"); assertEquals("http://example.com/%D6sterreich", result); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 12 01:46:45 GMT 2026 - 13.6K bytes - Click Count (0) -
src/archive/tar/reader.go
// the parser is more liberal than what USTAR actually permits. notASCII := func(r rune) bool { return r >= 0x80 } if bytes.IndexFunc(tr.blk[:], notASCII) >= 0 { hdr.Format = FormatUnknown // Non-ASCII characters in block. } nul := func(b []byte) bool { return int(b[len(b)-1]) == 0 } if !(nul(v7.size()) && nul(v7.mode()) && nul(v7.uid()) && nul(v7.gid()) &&
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Oct 07 19:46:36 GMT 2025 - 26.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt
/** Arbitrary code point that's 4 bytes in UTF-8 and valid in IdnaMappingTable.txt. */ private const val UNICODE_4 = 0x1d11e /** * Returns a new instance configured with a default encode set for the ASCII range. The specific * rules vary per-component: for example, '?' may be identity-encoded in a fragment, but must be * percent-encoded in a path. * * See https://url.spec.whatwg.org/#percent-encoded-bytesCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.3K bytes - Click Count (0) -
src/main/java/jcifs/http/NtlmHttpFilter.java
/* negotiation complete, remove the challenge object */ ssn.removeAttribute("NtlmHttpChal"); } else { final String auth = new String(Base64.decode(msg.substring(6)), "US-ASCII"); int index = auth.indexOf(':'); String user = index != -1 ? auth.substring(0, index) : auth; final String password = index != -1 ? auth.substring(index + 1) : "";Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.3K bytes - Click Count (0) -
docs/ja/docs/advanced/security/http-basic-auth.md
より完全な例です。 依存関係を使ってユーザー名とパスワードが正しいかを確認します。 これには、Python 標準モジュール [`secrets`](https://docs.python.org/3/library/secrets.html) を用いてユーザー名とパスワードを検証します。 `secrets.compare_digest()` は `bytes` か、ASCII 文字(英語の文字)のみを含む `str` を受け取る必要があります。つまり、`Sebastián` のように `á` を含む文字ではそのままでは動作しません。 これに対処するため、まず `username` と `password` を UTF-8 でエンコードして `bytes` に変換します。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
assertTrue(result.contains("totalAvailableEntries=5")); assertTrue(result.endsWith("]")); } @Test @DisplayName("Test readString with ASCII encoding") void testReadStringAscii() throws Exception { String testString = "TestString"; byte[] buffer = new byte[128]; byte[] stringBytes = testString.getBytes(StandardCharsets.US_ASCII);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
// Prepare test data with non-Unicode filename String expectedFilename = "asciifile.txt"; byte[] buffer = createValidBufferNonUnicode(expectedFilename, "ASCII~1.TXT"); // Decode fileBothDirectoryInfoNonUnicode.decode(buffer, 0, buffer.length); // Verify assertEquals(expectedFilename, fileBothDirectoryInfoNonUnicode.getFilename());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.9K bytes - Click Count (0) -
src/bytes/bytes_test.go
x := make([]byte, 1<<20) // Input is ~10% space, rest ASCII non-space. r := rand.New(rand.NewSource(99)) for i := range x { if r.Intn(10) == 0 { x[i] = ' ' } else { x[i] = 'x' } } return x } var bytesdata = []struct { name string data []byte }{ {"ASCII", makeFieldsInputASCII()}, {"Mixed", makeFieldsInput()}, }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
writer: DerWriter, value: String, ) = writer.writeUtf8(value) }, ) /** * Based on International Alphabet No. 5. Note that there are bytes that IA5 and US-ASCII * disagree on interpretation. * * TODO(jwilson): constrain to IA5 characters. */ val IA5_STRING = BasicDerAdapter( name = "IA5 STRING",Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Click Count (0) -
src/main/java/org/codelibs/core/lang/StringUtil.java
*/ public static String defaultString(final String str, final String defaultStr) { return str == null ? defaultStr : str; } /** * <p>Checks if the CharSequence contains only ASCII printable characters.</p> * * <p>{@code null} will return {@code false}. * An empty CharSequence (length()=0) will return {@code true}.</p> * * <pre>Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 21.5K bytes - Click Count (0)