Saturday, January 29, 2011

Re: pymssql: Problem with Unicode string

sorry,
let me correct some row:
-----------------------------------
import pymssql
conn = pymssql.connect(host='testserver', user='sa',
password='sa', database='testdb', as_dict=True)
crms = conn.cursor()
crms.execute('SELECT cc_Name FROM tblUsers')
for line in crms.fetchall():
print 'cc_Name:', line['cc_Name']
break
crms.close()
-----------------------------------
I guess that the returned data from crms.execute() is non unicode
data!!!
If that is case, how to get unicode data!!!
Things getting even worse as time goes by.

please give me your hand!

regards,
Orgil

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment