mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Workaround for buggy rtf files that use ansicpg0
This commit is contained in:
parent
12ae61a328
commit
e031c39d2c
@ -41,6 +41,8 @@ class GetCharMap:
|
||||
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…
x
Reference in New Issue
Block a user