- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 56 for iso (0.01 seconds)
-
docs/en/docs/tutorial/extra-data-types.md
* In requests and responses will be represented as a `str` in ISO 8601 format, like: `2008-09-15T15:53:00+05:00`. * `datetime.date`: * Python `datetime.date`. * In requests and responses will be represented as a `str` in ISO 8601 format, like: `2008-09-15`. * `datetime.time`: * A Python `datetime.time`. * In requests and responses will be represented as a `str` in ISO 8601 format, like: `14:23:55.003`. * `datetime.timedelta`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.6K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/extra-data-types.md
* 在請求與回應中會以 `str` 表示。 * `datetime.datetime`: * Python 的 `datetime.datetime`。 * 在請求與回應中會以 ISO 8601 格式的 `str` 表示,例如:`2008-09-15T15:53:00+05:00`。 * `datetime.date`: * Python 的 `datetime.date`。 * 在請求與回應中會以 ISO 8601 格式的 `str` 表示,例如:`2008-09-15`。 * `datetime.time`: * Python 的 `datetime.time`。 * 在請求與回應中會以 ISO 8601 格式的 `str` 表示,例如:`14:23:55.003`。 * `datetime.timedelta`: * Python 的 `datetime.timedelta`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 2.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/extra-data-types.md
* 在请求和响应中将以 `str` 表示。 * `datetime.datetime`: * 一个 Python `datetime.datetime`. * 在请求和响应中将表示为 ISO 8601 格式的 `str` ,比如: `2008-09-15T15:53:00+05:00`. * `datetime.date`: * Python `datetime.date`. * 在请求和响应中将表示为 ISO 8601 格式的 `str` ,比如: `2008-09-15`. * `datetime.time`: * 一个 Python `datetime.time`. * 在请求和响应中将表示为 ISO 8601 格式的 `str` ,比如: `14:23:55.003`. * `datetime.timedelta`: * 一个 Python `datetime.timedelta`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 2.5K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
@Test public void testGetContentAsStringWithDifferentEncoding() throws IOException { CurlResponse response = new CurlResponse(); response.setEncoding("ISO-8859-1"); String testContent = "Hello, World!"; byte[] data = testContent.getBytes("ISO-8859-1"); ContentCache cache = new ContentCache(data); response.setContentCache(cache); String content = response.getContentAsString();Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/OsddHelperTest.java
} @Test public void test_setEncoding() { final OsddHelper osddHelper = new OsddHelper(); osddHelper.setEncoding("ISO-8859-1"); assertEquals("ISO-8859-1", osddHelper.encoding); } @Test public void test_setContentType() { final OsddHelper osddHelper = new OsddHelper();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 24.3K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlRequestTest.java
assertSame(proxy, request.proxy()); } @Test public void testEncodingMethod() { CurlRequest request = new CurlRequest(Method.GET, "https://example.com"); String encoding = "ISO-8859-1"; CurlRequest result = request.encoding(encoding); assertSame(request, result); // Fluent API assertEquals(encoding, request.encoding()); } @Test
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 24.7K bytes - Click Count (0) -
docs/ja/docs/tutorial/encoder.md
そのために、**FastAPI** は`jsonable_encoder()`関数を提供しています。 ## `jsonable_encoder`の使用 { #using-the-jsonable-encoder } JSON互換のデータのみを受信するデータベース`fake_db`があるとしましょう。 例えば、`datetime`オブジェクトはJSONと互換性がないので、受け取られません。 そのため、`datetime`オブジェクトは[ISO形式](https://en.wikipedia.org/wiki/ISO_8601)のデータを含む`str`に変換されなければなりません。 同様に、このデータベースはPydanticモデル(属性を持つオブジェクト)を受け取らず、`dict`だけを受け取ります。 そのために`jsonable_encoder`を使用することができます。 Pydanticモデルのようなオブジェクトを受け取り、JSON互換版を返します:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 1.8K bytes - Click Count (0) -
docs/ko/docs/tutorial/encoder.md
## `jsonable_encoder` 사용 { #using-the-jsonable-encoder } JSON 호환 가능 데이터만 수신하는 `fake_db` 데이터베이스가 존재한다고 가정하겠습니다. 예를 들면, `datetime` 객체는 JSON과 호환되지 않으므로 이 데이터베이스는 이를 받지 않습니다. 따라서 `datetime` 객체는 [ISO 형식](https://en.wikipedia.org/wiki/ISO_8601)의 데이터를 포함하는 `str`로 변환되어야 합니다. 같은 방식으로 이 데이터베이스는 Pydantic 모델(속성이 있는 객체)을 받지 않고, `dict`만을 받습니다. 이를 위해 `jsonable_encoder`를 사용할 수 있습니다. Pydantic 모델 같은 객체를 받고 JSON 호환 가능한 버전을 반환합니다:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 1.8K bytes - Click Count (0) -
docs/en/docs/tutorial/encoder.md
For example, it doesn't receive `datetime` objects, as those are not compatible with JSON. So, a `datetime` object would have to be converted to a `str` containing the data in [ISO format](https://en.wikipedia.org/wiki/ISO_8601). The same way, this database wouldn't receive a Pydantic model (an object with attributes), only a `dict`. You can use `jsonable_encoder` for that.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 1.6K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/encoder.md
例如,當你需要把它儲存在資料庫中。 為此,**FastAPI** 提供了 `jsonable_encoder()` 函式。 ## 使用 `jsonable_encoder` { #using-the-jsonable-encoder } 想像你有一個只接受與 JSON 相容資料的資料庫 `fake_db`。 例如,它不接受 `datetime` 物件,因為那與 JSON 不相容。 因此,必須將 `datetime` 物件轉為一個以 [ISO 格式](https://en.wikipedia.org/wiki/ISO_8601) 表示資料的 `str`。 同樣地,這個資料庫不會接受 Pydantic 模型(帶有屬性的物件),只接受 `dict`。 你可以使用 `jsonable_encoder` 來處理。 它接收一個物件(例如 Pydantic 模型),並回傳一個與 JSON 相容的版本:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 1.5K bytes - Click Count (0)