[Checkins] SVN: zope3org/trunk/src/zorg/restsupport/__init__.py Fixed an encoding problem.

Uwe Oestermeier uwe_oestermeier at iwm-kmrc.de
Fri Apr 28 15:05:44 EDT 2006


Log message for revision 67732:
  Fixed an encoding problem.

Changed:
  U   zope3org/trunk/src/zorg/restsupport/__init__.py

-=-
Modified: zope3org/trunk/src/zorg/restsupport/__init__.py
===================================================================
--- zope3org/trunk/src/zorg/restsupport/__init__.py	2006-04-28 18:26:10 UTC (rev 67731)
+++ zope3org/trunk/src/zorg/restsupport/__init__.py	2006-04-28 19:05:43 UTC (rev 67732)
@@ -39,6 +39,8 @@
 
     """
    
+    if not isinstance(rest, unicode) :
+        rest = unicode(rest, encoding='utf-8', errors='replace')
     main = ReStructuredTextSourceFactory(rest)
     renderer = ReStructuredTextToHTMLRenderer(main, None)
     return renderer.render()



More information about the Checkins mailing list