MySQL Connector/Python Developer Guide

10.2.54 MySQLConnection.use_unicode Property

This property sets and returns whether the connection uses Unicode with the value True or False.

# gets whether the connector returns string fields as unicode or not
print(cnx.use_unicode)
>> True

# set or update use_unicode property
cnx.use_unicode = False
print(cnx.use_unicode)
>> False