From 04c326a13376247e7b1a7cedaccc659f6ecb097d Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 24 Aug 2011 15:02:17 +0200 Subject: encoding bug --- src/meetingtools/ac/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/meetingtools') diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py index 3b6ae94..7fcc5fc 100644 --- a/src/meetingtools/ac/api.py +++ b/src/meetingtools/ac/api.py @@ -88,9 +88,9 @@ class ACPClient(): elif type(v) == unicode: p[k] = v elif type(v) == str: - p[k] = unicode(v) + p[k] = v.decode('utf-8') else: - p[k] = v.encode('utf-8') + p[k] = repr(v) url = self.url + '?' + urlencode(p) -- cgit v1.1