read a unicode file

Pete Shinners pete at shinners.org
Mon Jun 9 11:20:13 EDT 2003


i have a text file of unicode data. i'm not sure how to read this from a 
file. i can read() it into a massive python string, but cannot get it to 
convert to unicode. it's definitely inefficient to read it all at once, 
but i expect the files i'll be reading aren't too large to cause problems.







More information about the Python-list mailing list