Created
March 9, 2015 12:54
-
-
Save fra3il/0c9491c7e416538b116f to your computer and use it in GitHub Desktop.
[Blog] latin1? utf8? - 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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