reading hebrew text file

Alex Martelli aleaxit at yahoo.com
Mon Oct 17 10:20:19 EDT 2005


<hagai26 at gmail.com> wrote:

> I have a hebrew text file, which I want to read in python
> I don't know which encoding I need to use & how I do that

As for the "how", look to the codecs module -- but if you don't know
what codec the textfile is written in, I know of no ways to guess from
here!-)


Alex



More information about the Python-list mailing list