[Tutor] how to read a non english text file

2005-11-25 Thread enas khalil
hello everyone still my question about if i could read and process a non english language text file using python Yahoo! Music Unlimited - Access over 1 million songs. Try it free.___ Tutor maillist - Tutor@python.org

Re: [Tutor] how to read a non english text file

2005-11-25 Thread Kent Johnson
enas khalil wrote: hello everyone still my question about if i could read and process a non english language text file using python To read the file use import codecs data = codecs.open('myfile.txt', 'r', 'cp1256').read() This will give you a Unicode string in data. I don't know how to use

Re: [Tutor] how to read a non english text file

2005-11-25 Thread Basem Narmok
enas khalil wrote: hello everyone still my question about if i could read and process a non english language text file using python Hi Enas, I think you mean Arabic language, yes of course you can, and I think you should see the Duali project: