摘要:
工作中遇到如下问题>>> str(u'我')Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'ascii' codec can't encode character u'\u6211' in position 0: ordinal not in range(128)解决方式如下>>> str(u'我'.encode('utf-8'))'\xe6 阅读全文
posted @ 2014-03-13 15:58
liuyongjians
阅读(11054)
评论(0)
推荐(0)
浙公网安备 33010602011771号