R. David Murray added the comment:

In normal HTML utf-8 works fine, doesn't it?. It's only when reading from a 
file (where the browser doesn't know the encoding) that it fails.  Do you have 
a use case for xmlcharrefreplace in the HTML context (which is what cgitb is 
primarily targeted at).  Some place where the web page can't be declared as 
utf-8, perhaps?

I suppose it might be a not-unreasonable enhancement request to have a 
parameter to Hook that says "do xmlcharrefreplace", but since the workaround is 
actually simpler than that, I don't know if that is worthwhile or not.  Or do 
people feel like doing the replacement all the time (it's only in tracebacks, 
after all) be the right thing to do?

----------
resolution: remind -> 
versions: +Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22746>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to