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.

Author serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2016-09-02.11:26:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472815578.99.0.818272171214.issue27940@psf.upfronthosting.co.za>
In-reply-to
Content
> By the way, I'm surprised that the special encoding "unicode" relies on the *current* locale encoding when the XML declaration is requested. Why not alway susing UTF-8 for *unicode* instead of the locale encoding?

Because it is usually outputs to sys.stdout or a file opened with default encoding. Agreed, the current locale encoding is not the best choice. It would be better to look at the encoding attribute of the file and fallback to utf-8 or ascii.
History
Date User Action Args
2016-09-02 11:26:19serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2016-09-02 11:26:18serhiy.storchakasetmessageid: <1472815578.99.0.818272171214.issue27940@psf.upfronthosting.co.za>
2016-09-02 11:26:18serhiy.storchakalinkissue27940 messages
2016-09-02 11:26:18serhiy.storchakacreate