This error happens both in the development server and the app engine when there 
are chinese characters in the template HTML. The template HTML files are saved 
in utf8 encoding. 
Does any one know what is wrong?

<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xe7 in 
position 15: ordinal not in range(128)
Traceback (most recent call last):
  File "/base/data/home/apps/wenzimoka/1.344360860116838630/main.py", line 35, 
in <module>
    main()
  File "/base/data/home/apps/wenzimoka/1.344360860116838630/main.py", line 32, 
in main
    util.run_wsgi_app(application)
  File 
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py",
 line 97, in run_wsgi_app
    run_bare_wsgi_app(add_wsgi_middleware(application))
  File 
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py",
 line 115, in run_bare_wsgi_app
    result = application(env, _start_response)
  File 
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
 line 531, in __call__
    response.wsgi_write(start_response)
  File 
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
 line 244, in wsgi_write
    body = self.out.getvalue()
  File "/base/python_runtime/python_dist/lib/python2.5/StringIO.py", line 270, 
in getvalue
    self.buf += ''.join(self.buflist)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to