6884: RTF reports broken for intl chars

Re-applied my fix from trunk

svn: r22697
This commit is contained in:
Vassilii Khachaturov 2013-07-20 16:33:14 +00:00
parent 0f86ee2044
commit 4e0cad08b2

View File

@ -492,7 +492,7 @@ class RTFDoc(BaseDoc,TextDoc):
else:
# If (uni)code with more than 8 bits:
# RTF req valus in decimal, not hex.
self.text += '\\uc1\\u%d\\uc0' % ord(i)
self.text += '{\\uc1\\u%d\\uc0}' % ord(i)
elif i == '{' or i == '}' :
self.text += '\\%s' % i
else: