C:\>python msMdbPro2.py Traceback (most recent call last): File "msMdbPro2.py", line 152, in ? main() File "msMdbPro2.py", line 132, in main testSyb = SybaseProc(199477,'10.130.58.154','sa','','zxdb_ecity',173624) File "msMdbPro2.py", line 44, in __init__ self.sybdata = Sybase.connect(hostip,user,pwd,databasename) File "C:\Python24\lib\site-packages\Sybase.py", line 1087, in connect strip, auto_commit, delay_connect, locking, datetime) File "C:\Python24\lib\site-packages\Sybase.py", line 866, in __init__ self.connect() File "C:\Python24\lib\site-packages\Sybase.py", line 960, in connect status = conn.ct_connect(self.dsn) File "C:\Python24\lib\site-packages\Sybase.py", line 200, in _servermsg_cb raise DatabaseError(_fmt_server(msg)) Sybase.DatabaseError: Msg 2401, Level 11, State 2 Character set conversion is not available between client character set 'iso_1' and server character set 'eucgb'. Msg 2411, Level 10, State 1 No conversions will be done. Msg 2415, Level 10, State 1 Due to previous errors, the language for this session is being forced to 'us_english'.
How to change the client(My python program)'s character set from iso_1 to eucgb(Chinese gb2312)? Thanks!
-- http://mail.python.org/mailman/listinfo/python-list