[Blends-commit] r2619 - /blends/trunk/webtools/blendsmarkdown.py

tille at users.alioth.debian.org tille at users.alioth.debian.org
Tue Jan 25 09:08:44 UTC 2011


Author: tille
Date: Tue Jan 25 09:08:43 2011
New Revision: 2619

URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=2619
Log:
Fix unicode problem if remarks might contain non ASCII-characters

Modified:
    blends/trunk/webtools/blendsmarkdown.py

Modified: blends/trunk/webtools/blendsmarkdown.py
URL: http://svn.debian.org/wsvn/blends/blends/trunk/webtools/blendsmarkdown.py?rev=2619&op=diff
==============================================================================
--- blends/trunk/webtools/blendsmarkdown.py (original)
+++ blends/trunk/webtools/blendsmarkdown.py Tue Jan 25 09:08:43 2011
@@ -96,8 +96,7 @@
     if string == None:
         return None
     try:
-        # string = Markup(unicode(string, 'utf-8'))
-        string = Markup(string)
+        string = Markup(to_unicode(string))
     except UnicodeDecodeError, errtxt:
         print >> stderr, "----> %s UnicodeDecodeError in %s (lang='%s'): '%s'; ErrTxt: %s" % \
                                     (elem, pkg, lang, 'debug-string', errtxt)




More information about the Blends-commit mailing list