Skip to content

Commit

Permalink
Fix @string decode utf8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Jan 26, 2011
1 parent 17248b5 commit 1cceeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/String/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def decode(self, irc, msg, args, encoding, text):
<http://docs.python.org/library/codecs.html#standard-encodings>.
"""
try:
irc.reply(text.decode(encoding).encode('utf-8'))
irc.reply(text.decode(encoding))
except LookupError:
irc.errorInvalid(_('encoding'), encoding)
except binascii.Error:
Expand Down

0 comments on commit 1cceeb7

Please sign in to comment.