Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 64 for ISO (0.1 sec)

  1. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/PublicationFieldValidator.java

            while (offset < value.length()) {
                final int unicodeChar = value.codePointAt(offset);
                if (Character.isISOControl(unicodeChar)) {
                    throw failure(String.format("%s cannot contain ISO control character '\\u%04x'.", name, unicodeChar));
                }
                if ('\\' == unicodeChar || ('/' == unicodeChar && !allowSlash)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/encoder.md

    ## 使用`jsonable_encoder`
    
    让我们假设你有一个数据库名为`fake_db`,它只能接收与JSON兼容的数据。
    
    例如,它不接收`datetime`这类的对象,因为这些对象与JSON不兼容。
    
    因此,`datetime`对象必须将转换为包含<a href="https://en.wikipedia.org/wiki/ISO_8601" class="external-link" target="_blank">ISO格式化</a>的`str`类型对象。
    
    同样,这个数据库也不会接收Pydantic模型(带有属性的对象),而只接收`dict`。
    
    对此你可以使用`jsonable_encoder`。
    
    它接收一个对象,比如Pydantic模型,并会返回一个JSON兼容的版本:
    
    === "Python 3.10+"
    
        ```Python hl_lines="4  21"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/encoder.md

    JSON 호환 가능 데이터만 수신하는 `fake_db` 데이터베이스가 존재한다고 가정하겠습니다.
    
    예를 들면, `datetime` 객체는 JSON과 호환되는 데이터가 아니므로 이 데이터는 받아들여지지 않습니다.
    
    따라서 `datetime` 객체는 <a href="https://en.wikipedia.org/wiki/ISO_8601" class="external-link" target="_blank">ISO format</a> 데이터를 포함하는 `str`로 변환되어야 합니다.
    
    같은 방식으로 이 데이터베이스는 Pydantic 모델(속성이 있는 객체)을 받지 않고, `dict` 만을 받습니다.
    
    이를 위해 `jsonable_encoder` 를 사용할 수 있습니다.
    
    Pydantic 모델과 같은 객체를 받고 JSON 호환 가능한 버전으로 반환합니다:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Dec 08 15:43:31 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  4. subprojects/core-api/src/main/java/org/gradle/api/tasks/TaskInputFilePropertyBuilder.java

         *
         * <p>
         * Line ending normalization is only supported with ASCII encoding and its supersets (i.e.
         * UTF-8, ISO-8859-1, etc). Other encodings (e.g. UTF-16) will be treated as binary files
         * and will not be subject to line ending normalization.
         * </p>
         *
         * @since 7.2
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 13 17:35:59 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  5. src/compress/gzip/gunzip.go

    func (z *Reader) Multistream(ok bool) {
    	z.multistream = ok
    }
    
    // readString reads a NUL-terminated string from z.r.
    // It treats the bytes read as being encoded as ISO 8859-1 (Latin-1) and
    // will output a string encoded using UTF-8.
    // This method always updates z.digest with the data read.
    func (z *Reader) readString() (string, error) {
    	var err error
    	needConv := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/resources/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/test-full.xml

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
       Licensed to the Apache Software Foundation (ASF) under one
       or more contributor license agreements.  See the NOTICE file
       distributed with this work for additional information
       regarding copyright ownership.  The ASF licenses this file
       to you under the Apache License, Version 2.0 (the
       "License"); you may not use this file except in compliance
       with the License.  You may obtain a copy of the License at
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. src/mime/type_test.go

    		val := TypeByExtension(ext)
    		if val != want {
    			t.Errorf("TypeByExtension(%q) = %q, want %q", ext, val, want)
    		}
    	}
    }
    
    func TestTypeByExtensionCase(t *testing.T) {
    	const custom = "test/test; charset=iso-8859-1"
    	const caps = "test/test; WAS=ALLCAPS"
    
    	cleanup := setMimeInit(func() {
    		clearMimeTypes()
    		setType(".TEST", caps)
    		setType(".tesT", custom)
    	})
    	defer cleanup()
    
    	// case-sensitive lookup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 21:09:03 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  8. apache-maven/src/main/appended-resources/META-INF/NOTICE.vm

    developed by javolution (http://javolution.org/). This product includes software developed by Rome (https://rome.dev.java.net/). about.html in archive lib/org.eclipse.sisu.inject-0.3.5.jar http://www.w3.org/1999/xhtml Content-Type text/html; charset=ISO-8859-1 About org.eclipse.sisu.inject EN-US About org.eclipse.sisu.inject November 5, 2013 License The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise indicated below, the Content is provided to you under...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sat Sep 10 19:27:25 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

                String enc;
                if (StringUtil.isNotBlank(getFessConfig().getCrawlerDocumentSiteEncoding())
                        && (!getFessConfig().isCrawlerDocumentUseSiteEncodingOnEnglish()
                                || ("ISO-8859-1".equalsIgnoreCase(encoding) || "US-ASCII".equalsIgnoreCase(encoding)))) {
                    enc = getFessConfig().getCrawlerDocumentSiteEncoding();
                } else {
                    enc = encoding;
                }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoPluginMultiVersionIntegrationTest.groovy

            then:
            htmlReport().sourceCode('foo', 'Bar.java').contains('öäüß') == match
    
            where:
            encoding     || match
            'UTF-8'      || true
            'ISO-8859-1' || false
        }
    
        private JacocoReportFixture htmlReport(String basedir = "${REPORTING_BASE}/jacoco/test/html") {
            return new JacocoReportFixture(file(basedir))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:19:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top