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:
- change window's display language chinese.
- use encoding utf-16 in writing process.
Comments
Post a Comment