diff --git a/strutil.py b/strutil.py index aae6159..33e3f30 100644 --- a/strutil.py +++ b/strutil.py @@ -17,6 +17,10 @@ # String <-> Bytes conversion and output utilities +# Microsoft again not following standards. Sigh. +import codecs +codecs.register(lambda x: codecs.lookup('utf8') if x == 'cp65001' else None) + import sys if sys.hexversion >= 0x3000000: unicode = str