realy thanks
hagai
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I have a hebrew text file, which I want to read in python
> I don't know which encoding I need to use
that's not a good start. but maybe it's one of these:
http://sites.huji.ac.il/tex/hebtex_fontsrep.html
?
> how I do that
f = open(myfile)
text = f.read
I looked for "VAV" in the files in the "encodings" directory
(/usr/lib/python2.4/encodings/*.py on my machine). I found that the following
character encodings seem to include hebrew characters:
cp1255
cp424
cp856
cp862
iso8859-8
A file containing hebrew text
<[EMAIL PROTECTED]> 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!-)
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
thanks,
hagai
--
http://mail.python.org/mailman/listinfo/python-list