bug fix for stdout encoding on windows terminal
@@ -21,6 +21,7 @@ from bgmi.constants import *
# Wrap sys.stdout into a StreamWriter to allow writing unicode.
if bgmi.config.IS_PYTHON3:
unicode = str
+ if platform.system() != 'Windows':
file_ = sys.stdout.buffer
sys.stdout = codecs.getwriter(locale.getpreferredencoding())(file_)
else:
