Using MySQLdb I connect to a database where everything is stored in utf8 encoding.
If i do
cursor.execute("SET NAMES utf8")
and get some data from the database by another operator. Does this mean that the lines in
cursor.execute("SELECT ...") cursor.fetchall()
will be in unicode? Or do I need to turn them on first
mystr.decode("utf8")
in unicode?
source share