3 ms·
Yeah, I recall doing import codecs sys.stdout = codecs.getwriter('utf-8')(sys.stdout) sys.stderr = codecs.getwriter('utf-8')(sys.stderr) to fix Unicode
by oefrha 7y ago
Yeah, I recall doing
import codecs
sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
sys.stderr = codecs.getwriter('utf-8')(sys.stderr)
to fix Unicode woes in Python 2, which opened another can of worms. Not fun.