Re: Problem reading file with umlauts

2009-07-09 Thread Claus Hausberger
Thanks a lot. I will try that on the weekend. Claus > Claus Hausberger wrote: > > Thanks a lot. Now I am one step further but I get another strange error: > > > > Traceback (most recent call last): > > File "./read.py", line 12, in > > of.write(

Re: Problem reading file with umlauts

2009-07-07 Thread Claus Hausberger
nge(128) according to google ufeff has something to do with byte order. I use an Linux system, maybe this helps to find the error. Claus > Claus Hausberger wrote: > > > I have a text file with is encoding in Latin1 (ISO-8859-1). I can't > > change that as I do not cre

Problem reading file with umlauts

2009-07-07 Thread Claus Hausberger
Hello I have a text file with is encoding in Latin1 (ISO-8859-1). I can't change that as I do not create those files myself. I have to read those files and convert the umlauts like รถ to stuff like &oumol; as the text files should become html files. I have this code: #!/usr/bin/python # -*- c