From f4fb83e787d3555668d34e572e485fa9cace9bbd Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 29 Aug 2017 21:35:36 +0200 Subject: Use the detected charset (irc) --- bridge/irc/irc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 5176389b..aecd85fd 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -277,7 +277,7 @@ func (b *Birc) handlePrivMsg(event *irc.Event) { return } flog.Debugf("detected %s confidence %#v", result.Charset, result.Confidence) - r, err = charset.NewReader(result.Charset, strings.NewReader(msg)) + mycharset = result.Charset // if we're not sure, just pick ISO-8859-1 if result.Confidence < 80 { mycharset = "ISO-8859-1" -- cgit v1.2.3