diff options
Diffstat (limited to 'scripts/index.py')
-rwxr-xr-x | scripts/index.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/index.py b/scripts/index.py index 281e36e..8d10129 100755 --- a/scripts/index.py +++ b/scripts/index.py @@ -122,8 +122,8 @@ def handler(req): content = func( "Invalid Mode: \"%s\"" % mode ) # apache.log_error("%s:%s ... %s" % (my_user, my_uri, str(form))) - req.content_type = "text/html" - req.write(content) + req.content_type = "text/html;charset=utf-8" + req.write(unicode(content).encode('utf-8')) return apache.OK |