How deal with the coding

1011_wxy 1011_wxy at 163.com
Thu Apr 21 02:27:39 EDT 2011


Dear All:
I got a coding problem when I use python to read html from web which is encode with gb2312,
ater I insert the data I read from web into Oracle DB with coding gbk, I found messy code by select from PL/SQL.
I tried the way ".encode('gbk','ignore')" before insert Oracle by using cx_Oracle,but not effective.
How can I deal with the coding?
 
Thanks a lot
Best Regards
 
Kerry
2011-04-21
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110421/f18cf382/attachment.html>


More information about the Python-list mailing list