==PyScripter 日本語ファイルエラーの対応==
[[Python][PyScripter]]{{category 文字化け}}
===ファイルのパスに日本語が入るとエラー===
<<blockquote>>UnicodeEncodeError: 'ascii' codec can't encode characters in position 8-10: ordinal not in range(128)<</blockquote>>
[[File:1021_pyscripter_encode_err01.jpg]]
===%PYTHON_HOME%\Lib\site.py を編集===
*Enable to support locale aware default string encodings. の条件を 0 -> > 1 に
def setencoding():
"""Set the string encoding used by the Unicode implementation. The
change this."""
encoding = "ascii" # Default value set by _PyUnicode_Init()
### ↓↓↓ ここを、0 -> > 1 に変更
if 1:
# Enable to support locale aware default string encodings.