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


MySQL Connector/Python Developer Guide  /  Connector/Python C Extension API Reference  /  _mysql_connector.MySQL.use_unicode() Method

11.44 _mysql_connector.MySQL.use_unicode() Method

Syntax:

is_unicode = ccnx.use_unicode()      # getter
ccnx.use_unicode(bool)               # setter

With no argument, returns True or False to indicate whether the MySQL instance returns nonbinary strings as Unicode.

With a boolean argument, sets whether the MySQL instance returns nonbinary strings as Unicode.