fix encoding problems with terminal
This commit is contained in:
1 parent
eeb8e0e21d
commit
bafb17001b
1 file changed
+2
@@ -185,5 +185,7 @@ except ImportError:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
encoding = sys.stdout.encoding
|
encoding = sys.stdout.encoding
|
||||||
|
if encoding is None:
|
||||||
|
encoding = 'utf-8'
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
encoding = 'ascii'
|
encoding = 'ascii'
|
||||||
Reference in new issue
Block a user