diff --git a/ChangeLog b/ChangeLog index c6e63f93..8e11b283 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-17 James Henstridge + + * ZPsycopgDA/DA.py (Connection.__init__): Default the encoding to + UTF-8, fixing bug #190. + 2008-01-16 James Henstridge * tests/test_transaction.py (DeadlockSerializationTestCase): port diff --git a/ZPsycopgDA/DA.py b/ZPsycopgDA/DA.py index 04ea6ce8..60de1354 100644 --- a/ZPsycopgDA/DA.py +++ b/ZPsycopgDA/DA.py @@ -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