Show
Ignore:
Timestamp:
06/21/06 09:37:16 (18 years ago)
Author:
jerome
Message:

Ensures that the databases are created with UTF-8 encoding, and that the
client tells that we will always use UTF-8 when sending datas to the server
or retrieving them.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/mysqlstorage.py

    r2874 r2954  
    5050        self.database.autocommit(1) 
    5151        self.cursor = self.database.cursor() 
     52        self.cursor.execute("SET NAMES 'utf8';") 
    5253        self.cursor.execute("SET TRANSACTION ISOLATION LEVEL READ COMMITTED;") # Same as PostgreSQL and Oracle's default 
    5354        self.closed = 0