summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-04-23 14:14:54 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-04-23 14:14:54 -0400
commitaba4879418ece5fb1c1126d45dfefcca73b4abc7 (patch)
tree532640b09d95516db82d047f63c39a00c12fd6e9 /scripts
parentb93705dc092d8e675bcb0690b29c20dbd2d58b68 (diff)
downloadthird_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-xscripts/services.py5
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