Skip to content

Commit 9406ef3

Browse files
author
y-p
committed
re-introduce fix for console_encode()
1 parent f6bbbdc commit 9406ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ def console_encode(value):
862862

863863
try:
864864
import sys
865-
return value.encode(sys.stdin.encoding, 'replace')
865+
return value.encode(sys.stdin.encoding or 'utf-8', 'replace')
866866
except (AttributeError, TypeError):
867867
return value.encode('ascii', 'replace')
868868

0 commit comments

Comments
 (0)