Temporary (?) fix for multibyte char / record boundary issue.

This commit is contained in:
Marshall T. Vandegrift 2009-01-02 09:27:47 -05:00
parent c4582ed2a8
commit 35320295f8

View File

@ -50,8 +50,9 @@ PALMDOC = 2
HUFFDIC = 17480 HUFFDIC = 17480
def encode(data): def encode(data):
#return data.encode('ascii', 'xmlcharrefreplace') # Using UTF-8 means needing to worry about multibyte characters crossing
return data.encode('utf-8') # record boundaries, so let's not for now.
return data.encode('ascii', 'xmlcharrefreplace')
# Almost like the one for MS LIT, but not quite. # Almost like the one for MS LIT, but not quite.
def decint(value): def decint(value):