This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 loewis
收信人 Neil Muller, benjamin.peterson, effbot, hodgestar, jcsalterego, loewis, pitrou
日期 2009-06-26.01:12:27
SpamBayes Score 0.0008550866
Marked as misclassified
Message-id <1245978750.2.0.0226173625779.issue6233@psf.upfronthosting.co.za>
In-reply-to
内容
I disagree with this report being classified as release-critical - it is
*not* a regression over 3.0 (i.e. 3.0 already behaved in the same way).
That it is a regression relative to 2.x should not make it
release-critical - we can still fix such regressions in 3.2.

In addition, there is an easy work-around for applications that run into
the problem - just use utf-8 as the output encoding always:

py> e = ET.XML(b"<?xml version='1.0'
encoding='iso-8859-1'?><body>t\xe3t</body>")
py> ET.tostring(e,encoding='utf-8')
b'<body>t\xc3\xa3t</body>'
历史
日期 用户 动作 参数
2009-06-26 01:12:30loewis修改recipients: + loewis, effbot, pitrou, benjamin.peterson, hodgestar, Neil Muller, jcsalterego
2009-06-26 01:12:30loewis修改messageid: <1245978750.2.0.0226173625779.issue6233@psf.upfronthosting.co.za>
2009-06-26 01:12:28loewis链接issue6233 messages
2009-06-26 01:12:28loewis创建