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 valueTrue orFalse.

# gets whether the connector returns string fields as unicode or notprint(cnx.use_unicode)>> True# set or update use_unicode propertycnx.use_unicode = Falseprint(cnx.use_unicode)>> False