Python 3.5: Exporting Chinese Characters -


i have been trying several times export chinese list variables csv or txt file , found problems that.

specifically, have set encoding utf-8 or utf-16 when reading data , writing them file. however, noticed cannot when window 7’s base language english, change language setting chinese. when run python programs under window 7 chinese base language, can export , show chinese perfectly.

i wondering why happens , solution helping me show chinese characters in exported file when running python programs under english-based window?

i found need 2 things achieve this:

  1. change window's display language chinese.
  2. use encoding utf-16 in writing process.

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -