mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 18:22:37 -04:00
Temporary (?) fix for multibyte char / record boundary issue.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user