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(text)
> > UnicodeEncodeError: 'ascii' codec
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(text)
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufeff' in position
0: ordinal not in range(128)
ac
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(text)
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufeff' in position
0: ordinal not in range(128)
according to google ufeff ha
Michiel Overtoom schrob:
> Viele Röhre. Macht spaß! Tsüsch!
LOL! :)
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
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 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.
umlaut-in.txt:
This fi
Claus Hausberger wrote:
> 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 h
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