hi,All:
when i execute the following code:
>>> from gluon import *
>>> db =
DAL('db2:pyodbc://DSN=mydb;uid=db2inst1;pwd=ok896d;',db_codec='UTF-8')
>>> db.executesql("insert into mytable(branch,name)values('11','河地')")
>>> db.commit()
the result is:
11 河地
if i replaced:
>>> db.executesql("insert into
mytable(branch,name)values('11','河地')".decode('utf-8'))
>>> db.commit()
the result is normal.my question is how can it works normally without
decode()? thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.