Xcode の Run Script 機能を使ってみようと思い、Github で拾ってきた Python スクリプトを実行しようとすると、下記のようなエラーが出て困りました。 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position xx: ordinal not in range(128) 対処手順 1. 現状のデフォルトエンコーディングを確認 $ python >>> import sys >>> sys.getdefaultencoding() 'ascii'これが'ascii'となっているのがよくないようです。 2. site-packagesディレクトリの場所を探す まず、 pythonと打ったときにわらわらと出てくる文字列で自分の環境でのpythonのバージョンが確認できます。 で、自分の場合は2.