---
 webtools/blendsunicode.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webtools/blendsunicode.py b/webtools/blendsunicode.py
index 551a2ca..02f25fb 100644
--- a/webtools/blendsunicode.py
+++ b/webtools/blendsunicode.py
@@ -11,7 +11,7 @@ from sys import stderr
 def to_unicode(value, encoding='utf-8'):
     if isinstance(value, str):
        try:
-           return value.decode(encoding)
+           return value.decode(encoding).encode('ascii', 'xmlcharrefreplace')
        except UnicodeDecodeError, err:
            print >>stderr, "type(value) =", type(value), \
                            "; isinstance(value, str) =", isinstance(value, 
str), \
-- 
1.9.1


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: 
https://lists.debian.org/[email protected]

Reply via email to