Unicode support in python

Fredrik Lundh fredrik at pythonware.com
Fri Oct 20 15:10:54 CEST 2006


"sonald" wrote:

> I have added the following line in the script
>
> # -*- coding: utf-8 -*-

that's good.

> I have also modified the site.py

that's bad, because this means that your code won't work on standard
Python installations.

> Now when I try to validate the data in the text file
> say abc.txt (saved as with utf-8 encoding) containing either english or
> russian text,

what does the word "validate" mean here?

> some junk character (box like) is added as the first character
> what must be the reason for this?

what did you do to determine that there's a box-like character at the start
of the file?

can you post some code?

</F> 






More information about the Python-list mailing list