From: Guillaume Pellerin Date: Sun, 19 Jan 2014 23:41:38 +0000 (+0100) Subject: fix unicode xml parsing X-Git-Tag: 1.4.5-1~6 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3efc1cc38647312261059e415bc36b29db3571b0;p=telemeta.git fix unicode xml parsing --- diff --git a/telemeta/cache.py b/telemeta/cache.py index 02a2a842..ea484add 100644 --- a/telemeta/cache.py +++ b/telemeta/cache.py @@ -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)