MySQL Connector/Python Release Notes
This property sets and returns whether the connection uses
Unicode with the value True
or
False
.
Press CTRL+C to copy# 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