mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Temporary (?) fix for multibyte char / record boundary issue.
This commit is contained in:
parent
c4582ed2a8
commit
35320295f8
@ -50,8 +50,9 @@ PALMDOC = 2
|
||||
HUFFDIC = 17480
|
||||
|
||||
def encode(data):
|
||||
#return data.encode('ascii', 'xmlcharrefreplace')
|
||||
return data.encode('utf-8')
|
||||
# Using UTF-8 means needing to worry about multibyte characters crossing
|
||||
# record boundaries, so let's not for now.
|
||||
return data.encode('ascii', 'xmlcharrefreplace')
|
||||
|
||||
# Almost like the one for MS LIT, but not quite.
|
||||
def decint(value):
|
||||
|
Loading…
x
Reference in New Issue
Block a user