gh-46236: Add Py_UNICODE_REPLACEMENT_CHARACTER doc (#132706)

Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
Stan Ulbrych 2025-04-22 13:16:51 +01:00 committed by GitHub
parent e84624450d
commit 5ffb89420c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: