Browse Source

Encode location in ISO-8859-1 for now.

Douglas William Thrift 12 years ago
parent
commit
b28d5004f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      locationbot.py

+ 1 - 1
locationbot.py

@@ -902,7 +902,7 @@ class LocationBot(ircbot.SingleServerIRCBot):
 							else:
 								aux = ''
 
-							self.connection.notice(channel, '%s is in %s%s %s' % (nick, location, aux, self.__url(nick, granularity, location, coordinates)))
+							self.connection.notice(channel, '%s is in %s%s %s' % (nick, location.encode('latin_1'), aux, self.__url(nick, granularity, location, coordinates)))
 
 						self.__locations = []