# Windows-31J roundtrip

**URL:** <https://www.ruby-forum.com/t/windows-31j-roundtrip/147346>\
**Category:** Development\
**Created:** [August 31, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/windows-31j-roundtrip/147346 "2008-08-31T19:06:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [August 31, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/windows-31j-roundtrip/147346/1 "2008-08-31T19:06:28Z")

</div>

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

> **[Microsoft Support](https://support.microsoft.com/en-US)**
>
> Microsoft support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft 365, Windows, Surface, and more.

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
