mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
* ZPsycopgDA/DA.py (Connection.__init__): Default the encoding to
UTF-8, fixing bug #190.
This commit is contained in:
parent
bc663111b6
commit
6d9b6a977c
|
@ -1,3 +1,8 @@
|
|||
2008-01-17 James Henstridge <james@jamesh.id.au>
|
||||
|
||||
* ZPsycopgDA/DA.py (Connection.__init__): Default the encoding to
|
||||
UTF-8, fixing bug #190.
|
||||
|
||||
2008-01-16 James Henstridge <james@jamesh.id.au>
|
||||
|
||||
* tests/test_transaction.py (DeadlockSerializationTestCase): port
|
||||
|
|
|
@ -82,7 +82,7 @@ class Connection(Shared.DC.ZRDB.Connection.Connection):
|
|||
icon = 'misc_/conn'
|
||||
|
||||
def __init__(self, id, title, connection_string,
|
||||
zdatetime, check=None, tilevel=2, encoding=''):
|
||||
zdatetime, check=None, tilevel=2, encoding='UTF-8'):
|
||||
self.zdatetime = zdatetime
|
||||
self.id = str(id)
|
||||
self.edit(title, connection_string, zdatetime,
|
||||
|
@ -94,7 +94,7 @@ class Connection(Shared.DC.ZRDB.Connection.Connection):
|
|||
## connection parameters editing ##
|
||||
|
||||
def edit(self, title, connection_string,
|
||||
zdatetime, check=None, tilevel=2, encoding=''):
|
||||
zdatetime, check=None, tilevel=2, encoding='UTF-8'):
|
||||
self.title = title
|
||||
self.connection_string = connection_string
|
||||
self.zdatetime = zdatetime
|
||||
|
|
Loading…
Reference in New Issue
Block a user