characters in python

Leo Kislov Leo.Kislov at
Thu Oct 19 00:46:23 CEST 2006

On Oct 18, 11:50 am, Stens <sgi... at> wrote:
> Stens wrote:
> > Can python handle this characters: c,c,ž,d,š?
> > If can how"I wanna to change some characters in text (in the file) to the
> characters at this address:

You need to use unicode, see any python unicode tutorial, for example
this one or any other you can
find with google.

Your script can look like this:

import codecs
outfile ="your output file", "w", "encoding of the output
for line in"your input file", "r", "encoding of the input

More information about the Python-list mailing list