>> print("Hogehoge")
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-3: ordinal not in range(128)
It was hard to debug, so I investigated the solution.
It was solved in the following environment. CentOS6.5 Python3.5.2 Click here for how to translate into Japanese http://d.hatena.ne.jp/yk5656/20140527/1402758009
>> print("Hogehoge")
Hogehoge
The cause was simply that Japanese was not installed in that environment. Solved by translating the environment into Japanese.
Although it is a struggle, I just repeated frustration with UnicodeEncodeError.
http://qiita.com/toshihikoyanase/items/47407551d8f3d4e8c39a
Recommended Posts