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 zephor
Recipients zephor
Date 2015-11-19.05:36:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447911382.32.0.466398267316.issue25664@psf.upfronthosting.co.za>
In-reply-to
Content
# coding=utf-8
import logging

logger = logging.getLogger(u'测试')
logger.error(u'测试')

# these code will get an unexpected error
# because getLogger encode the unicode to utf-8 while _log don't
# see line 474 in logging/__init__.py
# my suggestion is to keep the encoding in logging same with python2 with unicode
History
Date User Action Args
2015-11-19 05:36:22zephorsetrecipients: + zephor
2015-11-19 05:36:22zephorsetmessageid: <1447911382.32.0.466398267316.issue25664@psf.upfronthosting.co.za>
2015-11-19 05:36:22zephorlinkissue25664 messages
2015-11-19 05:36:21zephorcreate