6884: RTF reports broken on intl chars
Fix the problem by wrapping each char in an RTF {} group. A bit inflating the text, but fixes the bug :-) svn: r22695
This commit is contained in:
parent
b77ef0058a
commit
8b8ea1c269
@ -489,7 +489,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:
|
||||
|
Loading…
Reference in New Issue
Block a user