diff options
author | 2017-09-08 23:36:35 +0200 | |
---|---|---|
committer | 2017-09-08 23:36:55 +0200 | |
commit | 358365183a2ece6b193f5b766e8d8e89e756f98a (patch) | |
tree | 006e28fadcef28bb5f1c09f5752e7a0a1c8a15f9 | |
parent | rework SaxRewriterBase and SaxRewriter classes (diff) | |
download | javatoolkit-358365183a2ece6b193f5b766e8d8e89e756f98a.tar.gz javatoolkit-358365183a2ece6b193f5b766e8d8e89e756f98a.tar.bz2 javatoolkit-358365183a2ece6b193f5b766e8d8e89e756f98a.zip |
decode bytes string to unicode string0.6.0
-rw-r--r-- | src/py/javatoolkit/xml/DomRewriter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py/javatoolkit/xml/DomRewriter.py b/src/py/javatoolkit/xml/DomRewriter.py index 7cd5a2f..d1200b6 100644 --- a/src/py/javatoolkit/xml/DomRewriter.py +++ b/src/py/javatoolkit/xml/DomRewriter.py @@ -71,6 +71,6 @@ class DomRewriter: def write(self,stream): - stream.write(self.document.toxml("utf-8")) + stream.write(self.document.toxml('utf-8').decode('utf-8')) # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap: |