From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Tue, 22 Apr 2025 12:16:51 +0000 (+0100) Subject: gh-46236: Add Py_UNICODE_REPLACEMENT_CHARACTER doc (#132706) X-Git-Tag: v3.14.0b1~364 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ffb89420c3fb41cb6cc795c9f983a8b5cc207ab;p=thirdparty%2FPython%2Fcpython.git gh-46236: Add Py_UNICODE_REPLACEMENT_CHARACTER doc (#132706) Co-authored-by: Victor Stinner --- diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 6a20b0cd8dda..1b426ff3841c 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -1026,6 +1026,17 @@ generic ones are documented for simplicity. Generic Codecs """""""""""""" +The following macro is provided: + + +.. c:macro:: Py_UNICODE_REPLACEMENT_CHARACTER + + The Unicode code point ``U+FFFD`` (replacement character). + + This Unicode character is used as the replacement character during + decoding if the *errors* argument is set to "replace". + + These are the generic codec APIs: