diff --git a/src/docgen/RTFDoc.py b/src/docgen/RTFDoc.py index 124900722..5885b59d5 100644 --- a/src/docgen/RTFDoc.py +++ b/src/docgen/RTFDoc.py @@ -419,6 +419,8 @@ class RTFDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc): # #-------------------------------------------------------------------- def write_text(self,text,mark=None): + # Covert all text to unicode, just in case it's not. Solves bug #2447. + text=unicode(text) text = text.replace('\n','\n\\par ') if self.opened == 0: self.opened = 1