Please sign in to comment.
Use 'UTF-8' as the `encoding` attribute in `OutStream` class.
This means that `sys.stdout.encoding` returns something useful instead of raising an AttributeError. 'UTF-8' was chosen because our version of write actually wants a unicode string (i.e., not `bytes`) and we want something universal which an encode the entire range of unicode characters.
- Loading branch information...