解决办法:
The "real" fix is to change line 1335 in /usr/lib/pymodules/python2.7/em.py
from this:
interpreter.write(str(result))
To this:
interpreter.write(unicode(result))
转载自https://github.com/ros-infrastructure/bloom/issues/196
或再代码前写上:
-
import sys
-
reload(sys)
-
sys.setdefaultencoding('utf-8')