Skip to content

Commit 729d333

Browse files
author
y-p
committed
BUG: encoding detection should accept variations on 'ascii' GH3360
1 parent 57327e2 commit 729d333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ def detect_console_encoding():
16531653
except AttributeError:
16541654
pass
16551655

1656-
if not encoding or encoding == 'ascii': # try again for something better
1656+
if not encoding or 'ascii' in encoding.lower(): # try again for something better
16571657
try:
16581658
encoding = locale.getpreferredencoding()
16591659
except Exception:

0 commit comments

Comments
 (0)