"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
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
> 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?
>
>
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