Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[Blog] latin1? utf8? - 2
import MySQLdb
conn = MySQLdb.connect(host='localhost', user='root', passwd='', db='test')
cu = conn.cursor()
cu.execute("set names utf8")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.