Thanks for your anwser. But when I try to read an unicode file created in windows. I can't read it. The application always read dirty data. Could you help me? Thanks.