mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #3526 (Converting Mobipocket to MS Reader not working)
This commit is contained in:
parent
e7611bff6d
commit
e35345d589
@ -152,7 +152,11 @@ class ReBinary(object):
|
||||
def write(self, *values):
|
||||
for value in values:
|
||||
if isinstance(value, (int, long)):
|
||||
value = unichr(value)
|
||||
try:
|
||||
value = unichr(value)
|
||||
except OverflowError:
|
||||
self.logger.warn('Unicode overflow for integer:', value)
|
||||
value = u'?'
|
||||
self.buf.write(value.encode('utf-8'))
|
||||
|
||||
def is_block(self, style):
|
||||
|
Loading…
x
Reference in New Issue
Block a user