Permalink
Browse files

Support unicode text in CDATA fields by leaving the unicode strings a…

…lone
  • Loading branch information...
1 parent 88f3471 commit d0779a240780e0314e5135e00c438a31ffd9a4dc @rcoup rcoup committed Dec 22, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 xmltodict.py
View
@@ -73,10 +73,9 @@ def CharacterData(self, data):
"""SAX character data event handler"""
if data.strip():
data = data.replace("&lt;", "<")
- data = data.encode()
if self._inCode:
if self._mthdCode:
- self._mthdCode += "%s%s" % (code_linesep, data)
+ self._mthdCode += u"%s%s" % (code_linesep, data)
else:
self._mthdCode = data
else:

0 comments on commit d0779a2

Please sign in to comment.