go back to latin-1...weird errors with utf-8

This commit is contained in:
Marcos Pinto 2007-06-22 23:59:35 +00:00
parent 38d8b20072
commit 51d0f95d0d
1 changed files with 2 additions and 2 deletions

View File

@ -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"])])