mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:24:49 +02:00
Workaround for buggy rtf files that use ansicpg0
This commit is contained in:
parent
12ae61a328
commit
e031c39d2c
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ def __init__(self, bug_handler, char_file):
|
|||
self.__bug_handler = bug_handler
|
||||
|
||||
def get_char_map(self, map):
|
||||
if map == 'ansicpg0':
|
||||
map = 'ansicpg1250'
|
||||
found_map = 0
|
||||
map_dict = {}
|
||||
self.__char_file.seek(0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue