Special caracters don't display correctly when splitting
问题 When I'm reading a line in a text file, like this one below : présenté alloué ééé ààà tué And try to print it in the terminal, it displays correctly. But when I apply a split with a space as separator, it displays this : ['pr\xc3\xa9sent\xc3\xa9', 'allou\xc3\xa9', '\xc3\xa9\xc3\xa9\xc3\xa9', '\xc3\xa0\xc3\xa0\xc3\xa0', 'tu\xc3\xa9\n'] I just use this to read the text file : f = open("test.txt") l = f.readline() f.close() print l.split(" ") Can someone help me ? 回答1: Printing the list is not