From 75ffe72805230cedc8dcadc97ad7da0f1333c2f3 Mon Sep 17 00:00:00 2001 From: Cool Fire Date: Wed, 1 May 2019 16:03:10 +0200 Subject: [PATCH] Force UTF-8 encoding --- ircparser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircparser.rb b/ircparser.rb index e066158..24a0add 100644 --- a/ircparser.rb +++ b/ircparser.rb @@ -81,7 +81,7 @@ class IRCParser @output.debug_extra( "==> " + line + "\n" ) # Ensure UTF-8 encoding for all input - line.encode!(Encoding::UTF_8) + line = line.force_encoding('UTF-8') # Regular and server messages if( line =~ /^:/ ) -- GitLab