Browse Source

manager: fix unicode regression

Maurizio Porrato 7 years ago
parent
commit
1ca682282d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      frn/utility.py

+ 1
- 1
frn/utility.py View File

@@ -30,6 +30,6 @@ def formatSimpleXML(elements):
30 30
         items = elements.items()
31 31
     else:
32 32
         items = elements
33
-    return ''.join(["<%s>%s</%s>" % (k.upper().encode('utf8'),v.encode('utf8'),k.upper().encode('utf8')) for k,v in items])
33
+    return ''.join(["<%s>%s</%s>" % (k.upper().encode('utf8'),unicode(v).encode('utf8'),k.upper().encode('utf8')) for k,v in items])
34 34
 
35 35
 # vim: set et ai sw=4 ts=4 sts=4:

Loading…
Cancel
Save