diff --git a/convert2skk/aozora2skk.rb b/convert2skk/aozora2skk.rb index d3f0a09..b2255dd 100755 --- a/convert2skk/aozora2skk.rb +++ b/convert2skk/aozora2skk.rb @@ -35,6 +35,7 @@ # ○ Encoding.default_external = "euc-jis-2004" +STDOUT.set_encoding("euc-jis-2004", "utf-8") require 'optparse' opt = OptionParser.new diff --git a/convert2skk/chasen2skk.rb b/convert2skk/chasen2skk.rb index 0b76e34..8012103 100755 --- a/convert2skk/chasen2skk.rb +++ b/convert2skk/chasen2skk.rb @@ -43,6 +43,7 @@ ## Encoding.default_external = "euc-jis-2004" +STDOUT.set_encoding("euc-jis-2004", "utf-8") require_relative 'skkdictools' require 'optparse' diff --git a/convert2skk/ipadic2skk.rb b/convert2skk/ipadic2skk.rb index 6c3b34f..27e5a94 100755 --- a/convert2skk/ipadic2skk.rb +++ b/convert2skk/ipadic2skk.rb @@ -41,6 +41,7 @@ ## Encoding.default_external = "euc-jis-2004" +STDOUT.set_encoding("euc-jis-2004", "utf-8") require_relative 'skkdictools' require 'optparse' diff --git a/convert2skk/prime2skk.rb b/convert2skk/prime2skk.rb index 5fc2d45..3edb86a 100755 --- a/convert2skk/prime2skk.rb +++ b/convert2skk/prime2skk.rb @@ -39,6 +39,7 @@ ## Encoding.default_external = "euc-jis-2004" +STDOUT.set_encoding("euc-jis-2004", "utf-8") require_relative 'skkdictools' require 'optparse' opt = OptionParser.new