I converted an .xml file into a .txt file using office 2007
When I try to print part of the text file, I get the following error after a "system error (-50)" note:
This is the code I used:UnicodeError: ASCII decoding error: ordinal not in range(128)
I checked the file... there are no strange characters...Code:f = file("D:\\test.txt","r") x = f.readlines() f.close() y = x[2].split("\t") print y[1].decode("utf-8")
I also tried most of the options provided by Microsoft Office Excel 2007, including "Text (tab delimited)", "Unicode Text" and "Text (MS DOS)"!

Reply With Quote




