Read a text file with non-ASCII characters in an unknown encoding,"lines = codecs.open('file.txt', 'r', encoding='utf-8').readlines()"