Am 24.01.2006 um 14:02 schrieb Jorge Godoy:
I dunno what OS you're using but if its Linux you can try 'iconv'
to make
everything into UTF-8.
note that when you convert the encoding, you also have adjust the XML
encoding declaration in the kid file. Iconv doesn't do this.
But you'd better not mix different charsets on the
same file...
Exactly. If possible, use the same encoding on all machines, or at
least use editors which understand and respect the encoding
declaration and/or byte order mark in the files (both xml/html as
well as python files).
It's usually best to standardize on utf-8, because editors and xml
parsers can recognize iso-8859-1 bytes in an utf-8 file and issue an
error message (the chance that a sequence of iso-8859-1 bytes is
valid utf-8 is minimal). The reverse is not true, the file would be
read without errors, but of course the characters were garbled.
As a safeguard against accidental encoding mismatches, you could put
a comment with some portuguese characters at the top of the file. If
these come up garbled in your editor, you know that it did get the
encoding wrong, and should not change the file.
ciao
Martina