I can't seem to find what's the default encoding for io.StringIO
in Python3. Is it the locale as with stdio
?
How can I change it?
With stdio
, seems that just reopening with correct encoding works, but there's no such thing as reopening a StringIO
.