我剛部署了我的應用程序,一旦我進入主頁,就會收到'500內部服務器錯誤'頁面。通過日誌說完看着我得到了以下錯誤:App Engine在部署數字格式時出現錯誤
type 'exceptions.SyntaxError'>: Non-ASCII character '\xc2' in file /base/data/home/apps/spare-wheels/1.348259065130939449/sparewheels.py on line 465, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (sparewheels.py, line 465)
這行看起來是這樣的:
self.template_values['price_pounds'] = "£%.2f" % (float(self.event.price_pence)/100)
這工作得很好,當本地主機上運行:是否有一些關於數字格式,谷歌Python的應用版本不支持?