From 6d9b6a977ceadaa73cfb429fe138318cf6caa6a0 Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Wed, 16 Jan 2008 18:56:13 +0000 Subject: [PATCH] * ZPsycopgDA/DA.py (Connection.__init__): Default the encoding to UTF-8, fixing bug #190. --- ChangeLog | 5 +++++ ZPsycopgDA/DA.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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