nickmuchi commited on
Commit
dbd6797
1 Parent(s): 0cac1ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def extract_text_from_file(file):
50
  # read text file
51
  if file.type == "text/plain":
52
  # To convert to a string based IO:
53
- stringio = StringIO(file.getvalue().decode("utf-8"))
54
 
55
  # To read file as string:
56
  file_text = stringio.read()
 
50
  # read text file
51
  if file.type == "text/plain":
52
  # To convert to a string based IO:
53
+ stringio = StringIO(file.getvalue().decode("cp1252"))
54
 
55
  # To read file as string:
56
  file_text = stringio.read()