wsy4665 / ulipad

Automatically exported from code.google.com/p/ulipad
0 stars 0 forks source link

decode再encode的错误 #271

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
#coding=utf-8
text = u'wood是教科书'.encode('utf-8')
print text
print text.decode('utf-8')

我的是ulipad4.0
上面的代码竟然报错了,。。。狂汗

Original issue reported on code.google.com by shuxian...@gmail.com on 22 Apr 2011 at 9:37

GoogleCodeExporter commented 9 years ago
如果是直接在ulipad中运行,不能直接输出unicode。要转为其它�
��编码。可以在命令行下运行。

Original comment by limo...@gmail.com on 22 Apr 2011 at 10:47

GoogleCodeExporter commented 9 years ago
所以不是一个bug.

Original comment by limo...@gmail.com on 22 Apr 2011 at 10:47