Re: encode/decode misunderstanding

2007-07-30 Thread Tim Arnold
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tim Arnold schrieb: >> Hi, I'm beginning to understand the encode/decode string methods, but I'd >> like confirmation that I'm still thinking in the right direction: >> >> I have a file of latin1 encoded text. Let's

Re: encode/decode misunderstanding

2007-07-29 Thread Diez B. Roggisch
Tim Arnold schrieb: > Hi, I'm beginning to understand the encode/decode string methods, but I'd > like confirmation that I'm still thinking in the right direction: > > I have a file of latin1 encoded text. Let's say I put one line of that file > into a string variable 'tocline', as follows: > to

Re: encode/decode misunderstanding

2007-07-27 Thread Tim Arnold
> If I read in the latin1 file using > codecs.open(filename,encoding='latin1') and write out the utf8 file by > opening with > codecs.open(othername,encoding='utf8'), would I no longer have a > problem -- I could just read in latin1 and write out utf8 with no more > worries about encoding? > >

encode/decode misunderstanding

2007-07-26 Thread Tim Arnold
Hi, I'm beginning to understand the encode/decode string methods, but I'd like confirmation that I'm still thinking in the right direction: I have a file of latin1 encoded text. Let's say I put one line of that file into a string variable 'tocline', as follows: tocline = 'Ficha Datos de p\xe9rdi