diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/services.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/services.py b/scripts/services.py index 07243ae..2486a4a 100755 --- a/scripts/services.py +++ b/scripts/services.py @@ -60,8 +60,9 @@ def handler(req): content = func( **form ) # apache.log_error("%s:%s ... %s" % (my_user, my_uri, str(form))) - req.content_type = "text/plain" - req.write(content) + req.content_type = "text/plain;charset=utf-8" + content = unicode(content) + req.write(content.encode('utf-8')) return apache.OK |