The following commit has been merged in the master branch:
commit 71d3821fab1c68c26de3aca79ce288ac21462d65
Author: Akshita Jha <[email protected]>
Date:   Thu Mar 5 11:45:01 2015 +0530

    Solve bugs_udd.py unicode issue

diff --git a/webtools/blendsunicode.py b/webtools/blendsunicode.py
index 551a2ca..10b7cc7 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), \

-- 
Static and dynamic websites for Debian Pure Blends

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to