Message351329
Text descriptions about `Error Handlers` are not very friendly to novices.
https://docs.python.org/3/library/codecs.html#error-handlers
For example:
'xmlcharrefreplace'
Replace with the appropriate XML character reference (only for encoding). Implemented in :func:`xmlcharrefreplace_errors`.
'backslashreplace'
Replace with backslashed escape sequences. Implemented in :func:`backslashreplace_errors`.
'namereplace'
Replace with ``\N{...}`` escape sequences (only for encoding). Implemented in :func:`namereplace_errors`.
Novices may not know what these are.
Giving some examples may help the reader to understand more intuitively.
The effect picture is attached.
I picked two characters:
ß https://www.compart.com/en/unicode/U+00DF
♬ https://www.compart.com/en/unicode/U+266C |
|
Date |
User |
Action |
Args |
2019-09-08 14:14:30 | malin | set | recipients:
+ malin, docs@python |
2019-09-08 14:14:30 | malin | set | messageid: <1567952070.11.0.225789110598.issue38056@roundup.psfhosted.org> |
2019-09-08 14:14:30 | malin | link | issue38056 messages |
2019-09-08 14:14:29 | malin | create | |
|