UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\\u3042’ in position 0: ordinal not in range(128) 対策

投稿者:

UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\\u3042’ in position 0: ordinal not in range(128)
こういうエラーが出る場合
Apacheで環境変数PYTHONIOENCODINGを設定する
<Directory “/var/www/html”>
Options Indexes FollowSymLinks +ExecCGI
SetEnv PYTHONIOENCODING utf-8
</Directory>

Thank you for reading this post, don't forget to subscribe!