[0xff0c].pack("U").encode("Windows-31J", "UTF-8")

e$B0J2<$N$h$&$K!“e(BU+FF0C e$B$,e(B Windows-31J
e$B$KJQ49$G$-$^$;$s$,!”$3$le(B
e$B$O$=$&$$$&$b$N$G$7$g$&$+!#e(B

% ./ruby -ve ‘p [0xff0c].pack(“U”).encode(“Windows-31J”, “UTF-8”)’
ruby 1.9.0 (2008-08-01 revision 18308) [i686-linux]
-e:1:in encode': conversion undefined for byte sequence (maybe invalid byte sequence) (RuntimeError) from -e:1:in

http://www.microsoft.com/globaldev/reference/dbcs/932/932_81.mspx
e$B$G!“e(B8143 e$B$N$H$3$m$Ke(B FF0C
e$B$H=q$$$F$”$k$N$G!“JQ49$G$-$F$b$$$$e(B
e$B$h$&$J5$$,$7$^$9$,!”$I$&$J$s$G$7$g$&e(B?

e$B$J$*!"5UJ}8~$OJQ49$G$-$^$9!#e(B

% ./ruby -e ‘p “\x81\x43”.encode(“UTF-8”,
“Windows-31J”).encode(“UTF-16BE”).unpack(“H*”)’
[“ff0c”]