I use pymmsql to access MSSQL 2000, with a table, I store Chinese Character in NVarchar field, Chinese Character display normally when I query them by MS SQL Query Analyzer under Windows or by unixODBC under Ubuntu.
But when I query those data by pymssql or pyodbc, all Chinese Character display ??? instead.
Does anyone has some advice or thread? Thanks.

test "#coding=gb2312"

test "#coding=gb2312"

thanks for reply, but how to do?

write to header of py file

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.