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