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
> 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
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
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='tempdb')
> > cur = con.cursor()
> > cur.execute('select firstname, lastname from [users]')
> > lines = cur.fetchall()
>
> > pri
> 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
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
> 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
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