Re: Unicode string handling problem (revised)

2006-09-05 Thread John Machin
Richard Schulman wrote: [snip] > in_line = in_file.readline() [snip] We'd already deduced that that line was incorrectly published. Please don't start new threads like this; if you want to make a correction, do a couple-of-lines reply to your original message. Now please leave this new thread

Unicode string handling problem (revised)

2006-09-05 Thread Richard Schulman
The appended program fragment works correctly with an ascii input file. But the file I actually want to process is Unicode (utf-16 encoding). This file must be Unicode rather than ASCII or Latin-1 because it contains mixed Chinese and English characters. When I run the program I get an attribute_c