bug9240 RTF files show incorrect Unicode characters
This commit is contained in:
parent
cd5fa5c1ff
commit
8618f1468d
@ -486,7 +486,7 @@ class RTFDoc(BaseDoc, TextDoc):
|
|||||||
else:
|
else:
|
||||||
# If (uni)code with more than 8 bits:
|
# If (uni)code with more than 8 bits:
|
||||||
# RTF req valus in decimal, not hex.
|
# RTF req valus in decimal, not hex.
|
||||||
self.text += '{\\uc1\\u%d\\uc0}' % ord(i)
|
self.text += '{\\uc0\\u%d}' % ord(i)
|
||||||
elif i == '\n':
|
elif i == '\n':
|
||||||
self.text += '\n\\par '
|
self.text += '\n\\par '
|
||||||
elif i == '{' or i == '}' or i == '\\':
|
elif i == '{' or i == '}' or i == '\\':
|
||||||
|
Loading…
Reference in New Issue
Block a user