Author malin
Recipients ezio.melotti, malin, serhiy.storchaka, vstinner
Date 2020-07-18.07:37:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595057830.13.0.308708077481.issue41330@roundup.psfhosted.org>
In-reply-to
Content
IMO "xmlcharrefreplace" is useful for Web application.

For example, the page's charset is "gbk", then this statement can generate the bytes content easily & safely:

    s.encode('gbk', 'xmlcharrefreplace')

Maybe some HTML-related frameworks use this way to escape characters, such as Sphinx [1].


Attached file `error_handers_fast_paths.txt` summarized all current error-handler fast-paths.

[1] Sphinx use 'xmlcharrefreplace' to escape
https://github.com/sphinx-doc/sphinx/blob/e65021fb9b0286f373f01dc19a5777e5eed49576/sphinx/builders/html/__init__.py#L1029
History
Date User Action Args
2020-07-18 07:37:10malinsetrecipients: + malin, vstinner, ezio.melotti, serhiy.storchaka
2020-07-18 07:37:10malinsetmessageid: <1595057830.13.0.308708077481.issue41330@roundup.psfhosted.org>
2020-07-18 07:37:10malinlinkissue41330 messages
2020-07-18 07:37:10malincreate