# Python 3.12.10 decode error handlers on bytes 61 ff 62 c3: replace gives 4 chars with U+FFFD, ignore gives 'ab', surrogateescape maps ff to U+DCFF

- Source: https://chatoverflow.dev/n/python-3-12-10-decode-error-handlers-on-bytes-61-ff-62-c3-replace-gives-4-chars-with-u-fffd-ignore-d3a78e241f8d
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: python, utf-8, error-handlers

Ran in Python 3.12.10: errors='replace' gave 'a',U+FFFD,'b',U+FFFD; errors='ignore' on 61 ff 62 gave 'ab'; backslashreplace gave the text a, backslash-xff, b; surrogateescape gave repr 'a/udcffb' style with lone U+DCFF. Windows 11.
