xuzhenqi
9/30/2017 - 9:56 AM

utf8

utf8

import codecs

with codecs.open("test_output", "w", "utf-8-sig") as temp:
    temp.write("hi mom\n")
    temp.write(u"This has ♭")