more utf-8 issues
This commit is contained in:
parent
d3c8cdb572
commit
a306370f0d
3 changed files with 4 additions and 4 deletions
|
|
@ -28,8 +28,8 @@ def info(path):
|
|||
return data
|
||||
|
||||
def extract_text(path):
|
||||
with open(path) as fd:
|
||||
data = fd.read()
|
||||
with open(path, 'rb') as fd:
|
||||
data = fd.read().decode('utf-8', errors='replace')
|
||||
return data
|
||||
|
||||
def extract_isbn(text):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue