]> git.parisson.com Git - telemeta.git/commitdiff
fix unicode xml parsing
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 19 Jan 2014 23:41:38 +0000 (00:41 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 19 Jan 2014 23:41:38 +0000 (00:41 +0100)
telemeta/cache.py

index 02a2a842529b740f9e3afc4fde41cb35e49d2485..ea484adde77b055c47a193a665822356451bff3c 100644 (file)
@@ -128,6 +128,6 @@ class TelemetaCache(object):
             node.setAttribute('name', name)
             node.setAttribute('id', id)
             node.setAttribute('unit', unit)
-            node.setAttribute('value', str(value))
+            node.setAttribute('value', unicode(value))
             root.appendChild(node)
         return xml.dom.minidom.Document.toprettyxml(doc)