Re: Hebrew in idle ans eclipse (Windows)

2008-01-23 Thread iu2
On Jan 23, 11:17 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > If you are claimaing that the program > > Apparently, they do the OEMtoANSI conversion when you run a console > application (i.e. python.exe), whereas they don't convert when running > a GUI application (pythonw.exe). > > I'm not

Re: Hebrew in idle ans eclipse (Windows)

2008-01-23 Thread Martin v. Löwis
> Recall: > When I read data using sql I got a sequence like this: > \x88\x89\x85 > But when I entered heberw words directly in the print statement (or as > a dictionary key) > I got this: > \xe8\xe9\xe5 > > Now, scanning the encoding module I discovered that cp1255 maps > '\u05d9' to \xe9 > while

Re: Hebrew in idle ans eclipse (Windows)

2008-01-22 Thread iu2
On Jan 17, 10:35 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > ... > print lines[0].decode("").encode("") > ... > Regards, > Martin Ok, I've got the solution, but I still have a question. Recall: When I read data using sql I got a sequence like this: \x88\x89\x85 But when I entered heberw

Re: Hebrew in idle ans eclipse (Windows)

2008-01-20 Thread iu2
On Jan 17, 10:35 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > import pymssql > > > con = > > pymssql.connect(host='192.168.13.122',user='sa',password='',database='tempd­b') > > cur = con.cursor() > > cur.execute('select firstname, lastname from [users]') > > lines = cur.fetchall() > > > pri

Re: Hebrew in idle ans eclipse (Windows)

2008-01-17 Thread Martin v. Löwis
> import pymssql > > con = > pymssql.connect(host='192.168.13.122',user='sa',password='',database='tempdb') > cur = con.cursor() > cur.execute('select firstname, lastname from [users]') > lines = cur.fetchall() > > print lines > > or > > print lines[0] > > 'lines' is a list containing tuples o

Re: Hebrew in idle ans eclipse (Windows)

2008-01-17 Thread iu2
On Jan 17, 6:59 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > What do I need to do run my app like IDLE does? > > Can you please show the fragment of your program that prints > these strings? > > Regards, > Martin Hi, I use pymssql to get the data from a database, just like this (this is fr

Re: Hebrew in idle ans eclipse (Windows)

2008-01-16 Thread Martin v. Löwis
> What do I need to do run my app like IDLE does? Can you please show the fragment of your program that prints these strings? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Hebrew in idle ans eclipse (Windows)

2008-01-16 Thread iu2
Hi all, I'll realy appreciate your help in this: I read data from a database containg Hebrew words. When the application is run from IDLE a word looks like this, for example: \xe8\xe9\xe5 But when I run the same application from eclipse or the Windows shell I get the 'e's replaced with '8's: \x8