#429 Exception when calling google with umlauts

closed
James McCoy
5
2012-12-31
2004-09-17
Dnalor
No

<Dnalor> google ההההhm

supybot.plugins.Google: INFO 'google' called by
Dnalor!~bla@dnalor.running-
number.de
supybot.plugins.Google: DEBUG args: ['\xe4\xe4\xe4\xe4hm']
supybot.plugins.Google: ERROR Uncaught exception:
Traceback (most recent call last):
File
"/usr/lib/python2.3/site-packages/supybot/callbacks.py",
line 548, in _callCommand
cb.callCommand(command, self, self.msg, self.args)
File
"/usr/lib/python2.3/site-packages/supybot/callbacks.py",
line 1136, in callCommand
self.parent.callCommand(f, irc, msg, L)
File
"/usr/lib/python2.3/site-packages/supybot/callbacks.py",
line 958, in callCommand
method(irc, msg,
L)
File
"/usr/lib/python2.3/site-packages/supybot/callbacks.py",
line 908, in dispatcher
handleBadArgs()
File
"/usr/lib/python2.3/site-packages/supybot/callbacks.py",
line 886, in handleBadArgs
self._original(irc, msg, args)
File
"/usr/lib/python2.3/site-packages/supybot/plugins/Google.py",
line 262, in google
data = search(self.log, rest, kwargs)
File
"/usr/lib/python2.3/site-packages/supybot/plugins/Google.py",
line 105, in search
data = google.doGoogleSearch(' '.join(queries),
kwargs)
File
"/usr/lib/python2.3/site-packages/supybot/others/google.py",
line 311, in doGoogleSearch
safeSearch, language, inputencoding, outputencoding)
File
"/usr/lib/python2.3/site-packages/supybot/others/SOAP.py",
line 3624, in
r_call
self.hd, self.ma)
File
"/usr/lib/python2.3/site-packages/supybot/others/SOAP.py",
line 3533, in __call
config = self.config)
File
"/usr/lib/python2.3/site-packages/supybot/others/SOAP.py",
line 3339, in buildSOAP
return t.build()
File
"/usr/lib/python2.3/site-packages/supybot/others/SOAP.py",
line 2934, in build
return b.build()
File
"/usr/lib/python2.3/site-packages/supybot/others/SOAP.py",
line 2965, in build
return self.out.encode(self.encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte
0xe4 in position 789: ordinal not in range(128)
supybot.plugins.Google: ERROR Exception id: 0xea10d

Discussion

  • Grant Bowman
    Grant Bowman
    2004-09-17

    Logged In: YES
    user_id=3138

    Thanks for reporting this. Reports from users using various
    character sets are the best way to shake out all the bugs
    that may exist.