アップロード後の実行時のエラー【解決】

コード中(※コメントも含む)に日本語を含む場合、コードの最上部に以下の一行を追加します。

# -*- coding: utf-8 -*-

■■■■■ 以下は 2011-01-21 時点での情報です。■■■■■

開発環境では問題なく動作していたのに、アップロード後に実行すると、以下のエラーが出力する場合があります。この場合、コード中の日本語をすべて削除し、アップロードし直します。
※ コメント中に日本語を含む場合もすべて削除します。

Error: Server Error
The server encountered an error and could not complete your request.

If the problem persists, please report your problem and mention this error message and the query that caused it.

ログの内容:

: Non-ASCII character '\xe3' in file /base/data/home/apps//1.347758251357592395/exe/xxxx.py on line 13, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (xxxx.py, line 13)

※ 開発環境では、日本語を含んでいても問題なく動作します。


こちらの URL を参考にさせていただきました。