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)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-01-22
  • 2022-02-13
  • 2021-12-28
  • 2021-11-20
猜你喜欢
  • 2021-10-17
  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案