[Blends-commit] [SCM] website branch, master, updated. 71d3821fab1c68c26de3aca79ce288ac21462d65

Andreas Tille tille at debian.org
Thu Mar 5 13:44:07 UTC 2015


The following commit has been merged in the master branch:
commit 71d3821fab1c68c26de3aca79ce288ac21462d65
Author: Akshita Jha <zenith158 at gmail.com>
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



More information about the Blends-commit mailing list