brendonh/pyth — pull request #11 by dorosh (2011-10-11 16:28:42+00:00)
Title: fix handle_ansi_escape

>>> chr(129)
'\x81'
>>> char = '\x81'.decode('cp932')
Traceback (most recent call last):
File "", line 1, in
UnicodeDecodeError: 'cp932' codec can't decode byte 0x81 in position 0: incomplete multibyte sequence

I made a temporary solution for def handle_ansi_escape(self, code): in rtf15.reader.py