From 6889fac4f7df6772e94bc7fc8319823197b68552 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 7 Mar 2014 09:32:51 +0100 Subject: set default encoding to UTF-8 for Ruby 1.9 --- bin/rbot | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/rbot b/bin/rbot index 700fe08c..a8dd39c4 100755 --- a/bin/rbot +++ b/bin/rbot @@ -89,6 +89,8 @@ if File.directory? "#{defaultlib}/rbot" end begin + Encoding.default_internal = Encoding::UTF_8 + Encoding.default_external = Encoding::UTF_8 require 'rbot/ircbot' rescue LoadError => e puts "Error: couldn't find the rbot/ircbot module (or one of its dependencies)\n" -- cgit v1.2.3