From 51d0f95d0def25806a263ef079d7231e2ff7cd11 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 22 Jun 2007 23:59:35 +0000 Subject: [PATCH] go back to latin-1...weird errors with utf-8 --- src/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.py b/src/interface.py index dde43283b..5945aa7af 100644 --- a/src/interface.py +++ b/src/interface.py @@ -999,14 +999,14 @@ class DelugeGTK: for peer in new_peer_info: if peer['ip'] in curr_ips.keys(): self.peer_store.set(self.peer_store.get_iter_from_string(curr_ips[peer['ip']]), - 1, unicode(peer['client'], 'utf8'), + 1, unicode(peer['client'], "latin-1"), 2, round(peer["peer_has"],2), 3, common.frate(peer["download_speed"]), 4, common.frate(peer["upload_speed"])) if peer['ip'] not in curr_ips.keys() and peer['client'] is not "": self.peer_store.append([peer["ip"], - unicode(peer["client"], 'utf8'), + unicode(peer["client"], "latin-1"), round(peer["peer_has"],2), common.frate(peer["download_speed"]), common.frate(peer["upload_speed"])])