Skip to content

Commit 9be327a

Browse files
Add Py_UNICODE_REPLACEMENT_CHARACTER
1 parent f3d877a commit 9be327a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/c-api/unicode.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,14 @@ are available through these macros which are mapped to C functions depending on
193193
the Python configuration.
194194
195195
196+
.. c:macro:: Py_UNICODE_REPLACEMENT_CHARACTER
197+
198+
The Unicode code point ``U+FFFD`` (REPLACEMENT CHARACTER).
199+
200+
This Unicode character is used as the replacement character during
201+
decoding if the errors argument is set to "replace".
202+
203+
196204
.. c:function:: int Py_UNICODE_ISSPACE(Py_UCS4 ch)
197205
198206
Return ``1`` or ``0`` depending on whether *ch* is a whitespace character.

0 commit comments

Comments
 (0)