From: Tanaka Akira Date: 2008-09-01T02:00:50+09:00 Subject: [ruby-dev:36068] Windows-31J roundtrip 以下のように、0xfa4a ("\xFAJ") が Windows-31J -> UTF-8 -> Windows-31J で round trip します。 % ./ruby -ve 'puts "\xFAJ".encode("UTF-8", "Windows-31J").encode("Windows-31J", "UTF-8").dump' ruby 1.9.0 (2008-09-01 revision 19004) [i686-linux] "\xFAJ" しかし http://support.microsoft.com/default.aspx?scid=kb;ja;JP170559 には 0xfa4a -> U+2160 -> 0x8754 Roman Numeral One と round trip しないとの記載があります。 他に以下も同様なようです。 0xfa4b -> U+2161 -> 0x8755 Roman Numeral Two 0xfa4c -> U+2162 -> 0x8756 Roman Numeral Three 0xfa4d -> U+2163 -> 0x8757 Roman Numeral Four 0xfa4e -> U+2164 -> 0x8758 Roman Numeral Five 0xfa4f -> U+2165 -> 0x8759 Roman Numeral Six 0xfa50 -> U+2166 -> 0x875a Roman Numeral Seven 0xfa51 -> U+2167 -> 0x875b Roman Numeral Eight 0xfa52 -> U+2168 -> 0x875c Roman Numeral Nine 0xfa53 -> U+2169 -> 0x875d Roman Numeral Ten 0xfa58 -> U+3231 -> 0x878a Parenthesized Ideograph Stock 0xfa59 -> U+2116 -> 0x8782 Numero Sign 0xfa5a -> U+2121 -> 0x8784 Telephone Sign -- [田中 哲][たなか あきら][Tanaka Akira]