Warning: array_keys() expects parameter 1 to be array, object given in /export/sd09/www/jp/r/e/gmoserver/8/7/sd0135687/torokeru.tv/mameblog/wordpress-2.8.2-ja-undernavicontrol/wp-content/plugins/script-compressor/script-compressor.php on line 348

Warning: max(): When only one parameter is given, it must be an array in /export/sd09/www/jp/r/e/gmoserver/8/7/sd0135687/torokeru.tv/mameblog/wordpress-2.8.2-ja-undernavicontrol/wp-content/plugins/script-compressor/script-compressor.php on line 348
SyntaxError: Non-ASCII character ‘\xe6’ in file | まめも

SyntaxError: Non-ASCII character ‘\xe6’ in file


Djangoでモデルを新規作成していると、日本語のコメントの行でこんなエラーが出た。

SyntaxError: Non-ASCII character '\xe6' in file ~

ソースの頭にUTF-8だって事を知らせる
# -*- coding: utf-8 -*-
を追加して解決

No related posts.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <img localsrc="" alt="">