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 Sean.Wang
Recipients Sean.Wang, akuchling, aronacher, ash, bethard, eric.araujo, ezio.melotti, gward, ivilata, loewis, sampablokuper, vstinner
Date 2016-01-21.08:05:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453363508.22.0.916236433766.issue2931@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, missed one condition:
I used `unicode_literals` in Python 2.7.10, example below:

>>> from __future__ import unicode_literals
>>> str('api名称')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-4: ordinal not in range(128)
History
Date User Action Args
2016-01-21 08:05:08Sean.Wangsetrecipients: + Sean.Wang, loewis, akuchling, gward, bethard, ivilata, vstinner, aronacher, ezio.melotti, ash, eric.araujo, sampablokuper
2016-01-21 08:05:08Sean.Wangsetmessageid: <1453363508.22.0.916236433766.issue2931@psf.upfronthosting.co.za>
2016-01-21 08:05:08Sean.Wanglinkissue2931 messages
2016-01-21 08:05:07Sean.Wangcreate