diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-04-23 14:14:54 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-04-23 14:14:54 -0400 |
commit | aba4879418ece5fb1c1126d45dfefcca73b4abc7 (patch) | |
tree | 532640b09d95516db82d047f63c39a00c12fd6e9 /scripts | |
parent | b93705dc092d8e675bcb0690b29c20dbd2d58b68 (diff) | |
download | third_party-cobbler-aba4879418ece5fb1c1126d45dfefcca73b4abc7.tar.gz third_party-cobbler-aba4879418ece5fb1c1126d45dfefcca73b4abc7.tar.xz third_party-cobbler-aba4879418ece5fb1c1126d45dfefcca73b4abc7.zip |
Services operations are now happy with unicode data.
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 |