Не могу понять, почему такой код не работает?
# -*- coding: utf-8 -*-
def application(environ, start_response):
start_response('200 OK', [('Content-type', 'text/plain')])
name = u'дима'
s = name.encode('utf-8')
return s
mod_wsgi (pid=4836): Target WSGI script ‘D:/python_web/app.wsgi’ cannot be loaded as Python module.
mod_wsgi (pid=4836): Exception occurred processing WSGI script ‘D:/python_web/app.wsgi’.
UnicodeDecodeError: ‘utf8’ codec can't decode bytes in position 0-2: invalid data
mod_wsgi (pid=4836): Target WSGI script ‘D:/python_web/app.wsgi’ cannot be loaded as Python module.
mod_wsgi (pid=4836): Exception occurred processing WSGI script ‘D:/python_web/app.wsgi’.
UnicodeDecodeError: ‘utf8’ codec can't decode bytes in position 0-2: invalid data