@@ -1301,7 +1301,7 @@ msgid ""
13011301"Create a Unicode object by decoding *size* bytes of the UTF-8 encoded string"
13021302" *s*. Return ``NULL`` if an exception was raised by the codec."
13031303msgstr ""
1304- "通过解码 UTF-8 编码的字符串 *s* 的 *size* 个字节创建一个 Unicode 对象。 如果编解码器引发了异常则返回 ``NULL``。"
1304+ "通过解码 UTF-8 编码的字节串 *s* 的 *size* 个字节创建一个 Unicode 对象。 如果编解码器引发了异常则返回 ``NULL``。"
13051305
13061306#: ../../c-api/unicode.rst:960
13071307msgid ""
@@ -1476,27 +1476,33 @@ msgid ""
14761476"decoded and the number of bytes that have been decoded will be stored in "
14771477"*consumed*."
14781478msgstr ""
1479+ "如果 *consumed* 为 ``NULL``,则行为类似于 :c:func:`PyUnicode_DecodeUTF16`。 如果 "
1480+ "*consumed* 不为 ``NULL``,则 :c:func:`PyUnicode_DecodeUTF16Stateful` 将不把末尾的不完整 "
1481+ "UTF-16 字节序列(如为奇数个字节或为分开的替代对)视为错误。 这些字节将不会被解码并且已被解码的字节数将存储在 *consumed* 中。"
14791482
14801483#: ../../c-api/unicode.rst:1104
14811484msgid ""
14821485"Return a Python byte string using the UTF-16 encoding in native byte order. "
14831486"The string always starts with a BOM mark. Error handling is \" strict\" . "
14841487"Return ``NULL`` if an exception was raised by the codec."
14851488msgstr ""
1489+ "返回使用 UTF-16 编码格式本机字节序的 Python 字节串。 字节串将总是以 BOM 标记打头。 错误处理方式为 \" strict\" 。 "
1490+ "如果编解码器引发了异常则返回 ``NULL``。"
14861491
14871492#: ../../c-api/unicode.rst:1110
14881493msgid "UTF-7 Codecs"
1489- msgstr ""
1494+ msgstr "UTF-7 编解码器 "
14901495
14911496#: ../../c-api/unicode.rst:1112
14921497msgid "These are the UTF-7 codec APIs:"
1493- msgstr ""
1498+ msgstr "以下是 UTF-7 编解码器 API: "
14941499
14951500#: ../../c-api/unicode.rst:1117
14961501msgid ""
14971502"Create a Unicode object by decoding *size* bytes of the UTF-7 encoded string"
14981503" *s*. Return ``NULL`` if an exception was raised by the codec."
14991504msgstr ""
1505+ "通过解码 UTF-7 编码的字节串 *s* 的 *size* 个字节创建一个 Unicode 对象。 如果编解码器引发了异常则返回 ``NULL``。"
15001506
15011507#: ../../c-api/unicode.rst:1124
15021508msgid ""
0 commit comments