subprocess模块在Windows下调用失败问题
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)