Comment 1 for bug 499362

Revision history for this message
Geert JM Vanderkelen (geertjmvdk) wrote :

revno: 170
committer: Geert Vanderkelen <email address hidden>
branch nick: myconnpy-CHARSET
timestamp: Tue 2009-12-22 09:37:10 +0100
message:
  Fix setting character set at connection

  * mysql.connector.Connect(charset='latin1') now works as expected
  * Default character set is (still) UTF-8.
  * SET NAMES is only used when changing character set after connecting.
    Use MySQL.set_charset(charsetname) to change.
  * Test case added for bug report; fixing test case in test_protocol.py
    to reflect the new default character set 'utf-8'.