- Timestamp:
- 06/27/06 23:43:52 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/pgstorage.py
r2954 r2960 54 54 self.database = pg.connect(host=host, port=port, dbname=dbname, user=user, passwd=passwd) 55 55 self.closed = 0 56 self.database.query("SET CLIENT_ENCODING TO 'UTF-8';") 56 try : 57 self.database.query("SET CLIENT_ENCODING TO 'UTF-8';") 58 except PGError, msg : 59 self.tool.printInfo("Impossible to set database client encoding to UTF-8 : %s" % msg, "error") 57 60 self.tool.logdebug("Database opened (host=%s, port=%s, dbname=%s, user=%s)" % (host, port, dbname, user)) 58 61