Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 177 for ascii (0.02 sec)

  1. src/main/java/jcifs/smb1/smb1/NetServerEnum2.java

            final int start = dstIndex;
            byte[] descr;
            final int which = subCommand == NET_SERVER_ENUM2 ? 0 : 1;
    
            try {
                descr = DESCR[which].getBytes("ASCII");
            } catch (final UnsupportedEncodingException uee) {
                return 0;
            }
    
            writeInt2(subCommand & 0xFF, dst, dstIndex);
            dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeTest.kt

        assertEquals("2", mediaType.parameter("B"))
        assertEquals("3", mediaType.parameter("C"))
      }
    
      @Test fun testCharsetAndQuoting() {
        val mediaType = parse("text/plain;a=\";charset=us-ascii\";charset=\"utf-8\";b=\"iso-8859-1\"")
        assertEquals("UTF-8", mediaType.charsetName())
      }
    
      @Test fun testDuplicatedCharsets() {
        val mediaType = parse("text/plain; charset=utf-8; charset=UTF-8")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

                    }
                    break;
                case 1:
                    /* Get ASCII hex value and convert to platform dependant
                     * encoding like EBCDIC perhaps
                     */
                    b[0] = (byte) (Integer.parseInt(str.substring(i, i + 2), 16) & 0xFF);
                    out[j] = new String(b, 0, 1, "ASCII").charAt(0);
                    j++;
                    i++;
                    state = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

        Random random = new Random(0xdeadbeef); // for unpredictable but reproducible behavior
        sb.ensureCapacity(size);
        for (int k = 0; k < size; k++) {
          // [9-127) includes all ascii non-control characters
          sb.append((char) (random.nextInt(127 - 9) + 9));
        }
        String string = sb.toString();
        sb.setLength(0);
        data = ByteSource.wrap(string.getBytes(charset));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

            assertThrows(IllegalArgumentException.class, () -> new PercentEscaper(" ", true));
        assertThat(expected).hasMessageThat().isEqualTo(msg);
      }
    
      /** Helper to manually escape a 7-bit ascii character */
      private String escapeAscii(char c) {
        Preconditions.checkArgument(c < 128);
        String hex = "0123456789ABCDEF";
        return "%" + hex.charAt((c >> 4) & 0xf) + hex.charAt(c & 0xf);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/Config.java

                    log.println("WARNING: The default OEM encoding " + DEFAULT_OEM_ENCODING
                            + " does not appear to be supported by this JRE. The default encoding will be US-ASCII.");
                }
                DEFAULT_OEM_ENCODING = "US-ASCII";
            }
    
            if (LogStream.level >= 4) {
                try {
                    prp.store(log, "JCIFS PROPERTIES");
                } catch (final IOException ioe) {}
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    // or any other common encoding).
    func detectUTF8(s string) (valid, require bool) {
    	for i := 0; i < len(s); {
    		r, size := utf8.DecodeRuneInString(s[i:])
    		i += size
    		// Officially, ZIP uses CP-437, but many readers use the system's
    		// local character encoding. Most encoding are compatible with a large
    		// subset of CP-437, which itself is ASCII-like.
    		//
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestSetBits(anyOf("CharMatcher"));
        doTestSetBits(noneOf("CharMatcher"));
        doTestSetBits(inRange('n', 'q'));
        doTestSetBits(forPredicate(Predicates.equalTo('c')));
        doTestSetBits(CharMatcher.ascii());
        doTestSetBits(CharMatcher.digit());
        doTestSetBits(CharMatcher.invisible());
        doTestSetBits(CharMatcher.whitespace());
        doTestSetBits(inRange('A', 'Z').and(inRange('F', 'K').negate()));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

                assertEquals(longMessage, exception.getMessage());
            });
    
            // Test message with special characters
            String specialMessage = "Error: ñoñ-ASCII çhárácters & symbols!@#$%^&*()";
            assertDoesNotThrow(() -> {
                RuntimeCIFSException exception = new RuntimeCIFSException(specialMessage);
                assertEquals(specialMessage, exception.getMessage());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. docs/es/docs/advanced/security/http-basic-auth.md

    `secrets.compare_digest()` necesita tomar `bytes` o un `str` que solo contenga caracteres ASCII (los carácteres en inglés), esto significa que no funcionaría con caracteres como `á`, como en `Sebastián`.
    
    Para manejar eso, primero convertimos el `username` y `password` a `bytes` codificándolos con UTF-8.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top