mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
This commit is contained in:
parent
f8039aaa19
commit
086d4c6d44
@ -99,7 +99,8 @@ class BookHeader(object):
|
||||
65001 : 'utf-8',
|
||||
}[self.codepage]
|
||||
except IndexError, KeyError:
|
||||
raise MobiError('Unknown codepage: %d'%self.codepage)
|
||||
print '[WARNING] Unknown codepage %d. Assuming cp-1252'%self.codepage
|
||||
self.codec = 'cp1252'
|
||||
|
||||
if ident == 'TEXTREAD' or self.length < 0xF4:
|
||||
self.extra_flags = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user