How to fix this? Sybase module and character set!!!!
boyeestudio
boyee118 at gmail.com
Fri Apr 6 05:05:17 EDT 2007
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070406/4be9ebec/attachment.html>
More information about the Python-list
mailing list