summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/core/unicode.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/core/unicode.rb b/lib/rbot/core/unicode.rb
index b6471472..02638bbd 100644
--- a/lib/rbot/core/unicode.rb
+++ b/lib/rbot/core/unicode.rb
@@ -22,6 +22,7 @@ class UnicodePlugin < CoreBotModule
def in(data)
data.force_encoding @charset if data
+ data.encode('UTF-16le', :invalid => :replace, :replace => '').encode('UTF-8')
end
def out(data)