Changeset 3129

Show
Ignore:
Timestamp:
12/21/06 16:27:57 (17 years ago)
Author:
jerome
Message:

Fixed a charset problem with MySQL, probably for people who
didn't install python-chardet and/or use an old release of CUPS.

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/CREDITS

    r3045 r3129  
    8484  - Andrew Ross - Parakeet Print Quota : Provided a patch to allow the 
    8585    configuration files directory to be set at run time. 
     86  - Georger Araujo - Fixed a charset problem with MySQL. 
    8687 
    8788============================================================== 
  • pykota/trunk/pykota/storages/mysqlstorage.py

    r3010 r3129  
    4747         
    4848        self.tool.logdebug("Trying to open database (host=%s, port=%s, dbname=%s, user=%s)..." % (host, port, dbname, user)) 
    49         self.database = MySQLdb.connect(host=host, port=port, db=dbname, user=user, passwd=passwd) 
     49        self.database = MySQLdb.connect(host=host, port=port, db=dbname, user=user, passwd=passwd, charset="utf8") 
    5050        try : 
    5151            self.database.autocommit(1)