summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorWilliam Wolf <throughnothing@gmail.com>2011-06-10 15:28:17 -0400
committerWilliam Wolf <throughnothing@gmail.com>2011-06-10 15:28:17 -0400
commite986887d513855d5a5fd6ca90998860f67fcb1d3 (patch)
treeff31a8f92f94c111a774a27a7421d7162fa5a59e /nova/api
parent50c9ebfdc00a87d1a37a11501e5678de89e25a4f (diff)
downloadnova-e986887d513855d5a5fd6ca90998860f67fcb1d3.tar.gz
nova-e986887d513855d5a5fd6ca90998860f67fcb1d3.tar.xz
nova-e986887d513855d5a5fd6ca90998860f67fcb1d3.zip
force utf-8 encoding on toprettyxml call for XMLDictSerializer
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/wsgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py
index ddf4e6fa9..6760735c4 100644
--- a/nova/api/openstack/wsgi.py
+++ b/nova/api/openstack/wsgi.py
@@ -225,7 +225,7 @@ class XMLDictSerializer(DictSerializer):
if not xmlns and self.xmlns:
node.setAttribute('xmlns', self.xmlns)
- return node.toprettyxml(indent=' ')
+ return node.toprettyxml(indent=' ', encoding='utf-8')
def _to_xml_node(self, doc, metadata, nodename, data):
"""Recursive method to convert data members to XML nodes."""