Update app.py
Browse files
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("
|
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()
|