Menu

#6 Unknown encoding error on OSX 10.5.7

open
nobody
None
5
2009-08-05
2009-08-05
Anonymous
No

Hi,

I'm trying to use 'Rtf2Html.py' on OSX but get this error:

<pre><code>
Traceback (most recent call last):
File "/Users/richard/Downloads/Rtf-0.2.1/rtf/Rtf2Html.py", line 311, in <module>
tester.feed(line)
File "/Users/richard/Downloads/Rtf-0.2.1/rtf/RtfParser.py", line 41, in feed
self.feedChar(c)
File "/Users/richard/Downloads/Rtf-0.2.1/rtf/RtfParser.py", line 75, in feedChar
char = self.getChar(int(self.escapedChar,16))
File "/Users/richard/Downloads/Rtf-0.2.1/rtf/Rtf2Html.py", line 258, in getChar
return unicode(chr(code),self.ansicpg)
LookupError: unknown encoding: cp10000
</code></pre>

I'm afraid I'm new to Python (and working with the command line in OSX), so I don't know if this is a problem with this project, with my Python install or with my input file. The input file was saved from Word 2008 (again on OSX) so it's full of garbage but I don't know if that is relevant, the encoding does not appear to be cp100000.

Thanks,
Richard

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.