标签:
bug of python
http://bugs.python.org/issue1759845
解决:
print sys.stdout.encoding #eg : it shows cp936
info = u‘汉字‘
cmd = ‘echo ‘ + info
subprocess.call(["java", "-jar", "Test.jar", cmd.encode(‘cp936‘)], shell=True)
标签:
原文地址:http://www.cnblogs.com/flowjacky/p/4727580.html