Documentation Home
MySQL Connector/Python Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 0.7Mb
PDF (A4) - 0.7Mb


10.2.54 MySQLConnection.use_unicode Property

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