使用Python CGI,然后访问接口,全部都是????,啧啧
呵呵哒
在connect MySQL的时候,加一个参数
coding=utf-8
import MySQLdb
dbHandler = MySQLdb.connect(host = '127.0.0.0', port = '3306', user = 'name', passwd = '123456', db = 'DBName' ,charset = 'utf8')
使用Python CGI,然后访问接口,全部都是????,啧啧
呵呵哒
在connect MySQL的时候,加一个参数
import MySQLdb
dbHandler = MySQLdb.connect(host = '127.0.0.0', port = '3306', user = 'name', passwd = '123456', db = 'DBName' ,charset = 'utf8')