Re: [Pythonmac-SIG] read content from latin-1 file, write it to ut8 file

2006-04-18 Thread Henning Hraban Ramm
Am 2006-04-18 um 10:27 schrieb Piet van Oostrum: >> FH> my problem is, that when I open "newtest.txt" in Textwrangler >> again, >> FH> Textwrangler recognizes the file as "MacRoman" encoded and the >> content is >> FH> garbled. > > Then that is Textwrangler's fault. Interpreting a utf-8 file as

Re: [Pythonmac-SIG] read content from latin-1 file, write it to ut8 file

2006-04-18 Thread Piet van Oostrum
> "frank h." <[EMAIL PROTECTED]> (FH) wrote: >FH> Hello, >FH> I am using Mac Python 2.4.1 on Mac OS X 10.4 and I cannot seem to be able >to >FH> read from a latin-1 file and then write to a UTF8 file correctly >FH> Using Textwrangler on OS X, I create a latin-1 file with some special >FH> ch

[Pythonmac-SIG] read content from latin-1 file, write it to ut8 file

2006-04-17 Thread frank h.
Hello,I am using Mac Python 2.4.1 on Mac OS X 10.4 and I cannot seem to be able to read from a latin-1 file and then write to a UTF8 file correctlyUsing Textwrangler on OS X, I create a latin-1 file with some special characters in it and save it as " test.txt"I am reading the textfile as such:   f