

import urllib

def command_oraakkeli(bot, user, channel, args):
    """Asks a question from the oracle (http://www.lintukoto.net/viihde/oraakkeli/)"""
    if not args: return

    args = urllib.quote_plus(args)

    answer = getUrl("http://www.lintukoto.net/viihde/oraakkeli/index.php?kysymys=%s&html=0" % args).getContent()

    bot.say(channel, "Oraakkeli vastaa: %s" % answer)



import urllib

def command_oraakkeli(bot, user, channel, args):
    """Asks a question from the oracle (http://www.lintukoto.net/viihde/oraakkeli/)"""
    if not args: return

    args = urllib.quote_plus(args)

    answer = getUrl("http://www.lintukoto.net/viihde/oraakkeli/index.php?kysymys=%s&html=0" % args).getContent()

    answer = unicode(answer)
    answer = answer.encode("utf-8")
    
    bot.say(channel, "Oraakkeli vastaa: %s" % answer)

Update oracle module for UTF-8
Update oracle module for UTF-8


git-svn-id: 056f9092885898c4775d98c479d2d33d00273e45@99 dda364a1-ef19-0410-af65-756c83048fb2
