Sha256: 46c75344a3f3097c9f1cfee4019a582c910d1132f54174743a0ccd147ff1b4de
Contents?: true
Size: 561 Bytes
Versions: 9
Compression:
Stored size: 561 Bytes
Contents
gem 'iconv' require 'iconv' require 'test/unit' class TestIconv < ::Test::Unit::TestCase if defined?(::Encoding) and String.method_defined?(:force_encoding) def self.encode(str, enc) str.force_encoding(enc) end else def self.encode(str, enc) str end end def default_test self.class == TestIconv or super end ASCII = "ascii" EUCJ_STR = encode("\xa4\xa2\xa4\xa4\xa4\xa6\xa4\xa8\xa4\xaa", "EUC-JP").freeze SJIS_STR = encode("\x82\xa0\x82\xa2\x82\xa4\x82\xa6\x82\xa8", "Shift_JIS").freeze end if defined?(::Iconv)
Version data entries
9 entries across 9 versions & 1 rubygems