Grostein
Grostein

Reputation: 33

Unicode App Engine Python

I have a problem from this morning. My app was working well without any issue. From this morning I'm facing below problem:

SyntaxError: Non-ASCII character '\xc3' in file /base/data/home/apps/s~gestionalemeraviglie/35.386401329554667154/scriptemail.py on line 35, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

I haven't modified the code, so I can't understand what is going on. Is any change on App Engine Python Unicode management?

Right now I'm using :

from __future__ import unicode_literals

Thanks

Upvotes: 1

Views: 95

Answers (1)

Davy
Davy

Reputation: 75

Add on the top of your file # -*- coding: utf-8 -*-.

Upvotes: 2

Related Questions