我正在尝试将RTF文件中的行转换为一系列unicode字符串,然后在行上进行regex匹配。(我需要它们是unicode,以便可以将它们输出到另一个文件。)three upper-case characters plus a space
f = open('textbase_1a.rtf#line = line.decode('utf-16be') # this causes an error: I don't reall
javax.swing.text.rtf.RTFReader$DocumentDestination.deliverText(RTFReader.java:1610) at javax.swing.text.rtf.RTFParser.write(RTFParser.java:163)
at javax.swing.text.