Permalink
Browse files

fix

  • Loading branch information...
proycon committed Apr 6, 2013
1 parent e4fc8c7 commit 271aa770f53d9df93f679ba948bfd23a78c1aa3d
Showing with 1 addition and 1 deletion.
  1. +1 −1 formats/folia.py
View
@@ -400,7 +400,7 @@ def makeelement(E, tagname, **kwargs):
except ValueError as e:
try:
#older versions of lxml may misbehave, compensate:
- e = E._makeelement(tagname)
+ e = E._makeelement(tagname.encode('utf-8'))
for k,v in kwargs.items():
e.attrib[k.encode('utf-8')] = v
except ValueError as e2:

0 comments on commit 271aa77

Please sign in to comment.