Windows-31J roundtrip

e$B0J2<$N$h$&$K!“e(B0xfa4a (”\xFAJ") e$B$,e(B
Windows-31J -> UTF-8 -> Windows-31J e$B$Ge(B round trip e$B$7$^$9!#e(B

% ./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”

e$B$7$+$7e(B
http://support.microsoft.com/default.aspx?scid=kb;ja;JP170559
e$B$K$Oe(B
0xfa4a -> U+2160 -> 0x8754 Roman Numeral One
e$B$He(B round trip e$B$7$J$$$H$N5-:$,$"$j$^$9!#e(B

e$BB>$K0J2<$bF1MM$J$h$&$G$9!#e(B

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs