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,!“e(Butf-16le e$B”*e(B
utf-8 e$B$J$I$N$h$&$JJQ49$r$7$?$$>l9g$K!"LdBj$K$J$k$H;W$o$l$^$9!#e(B
e$B!&e(BUnicode e$B$XJQ49$G$-$J$$J8;z$re(B UTF-8 e$B=PNO$N>l9g$O%9%-%C%W$7!"e(BUTF-16 e$B=Pe(B
e$BNO$N>l9g$Oe(B U+0000 e$B$G=PNO$9$k$J$I!"e(BUTF-8e$B!“e(BUTF-16 e$B$G0[$J$k=hM}$r$7$F$$e(B
e$B$k2U=j$,$”$k$N$G!"e(BUnicode e$B=hM}$N8+D>$7!#e(B
e$B$“$l!”$=$s$J$H$3$m$"$j$^$9!)e(B
to Unicode e$B$G$-$J$$J8;ze(B = e$B%(%i!<J8;ze(B e$B$N$O$:$J$N$G<N$F$F$$$k$O$:$G$9$,!#e(B
e$B<!$N$h$&$J%1!<%9$G$9!#e(B(nkf CVSe$BHG$G3NG’e(B)
$ ruby -e ‘print “\xa3\xaf”’ |
./nkf --ic=euc-jp --oc=utf-8 | od -tx1
0000000
$ ruby -e ‘print “\xa3\xaf”’ |
./nkf --ic=euc-jp --oc=utf-16le | od -tx2
0000000 0000
0000002
e$B!&e(B–ic, --oc e$B%*%W%7%g%s$HH>3Q%+%J=hM}$N8+D>$7!#e(B
e$BF1$8$3$H$r9M$($Fe(Bnkf CVS HEADe$B$G$O8+D>$7$?$O$:$G$9!#e(B
e$B<!$N$h$&$JLdBj$,$"$j$^$9!#e(B(nkf CVSe$BHG$G3NG’e(B)
$ ruby -e ‘print “\xa1”’ |
./nkf --ic=cp932 --oc=cp50220 | od -tx1
0000000 1b 28 49 21 1b 28 42
0000007
–oc=cp50220
e$B$r;XDj$7$?;~$O!"H>3Q%+%J$OA43Q$KJQ49$7$FM_$7$$$G$9$M!#e(B
$ ruby -e ‘print “\x1b\x28\x49” + “!” + “\x1b\x28\x42”’ |
./nkf --ic=cp50220 --oc=utf-16le | od -tx2
0000000 3002
0000002
$ ruby -e ‘print “\x1b\x28\x49” + “!” + “\x1b\x28\x42”’ |
./nkf --ic=cp50221 --oc=utf-16le | od -tx2
0000000 3002
0000002
–ic
e$B$,;XDj$5$l$?>l9g$O!"F~NOB&$G$OH>3Q%+%Je(B-e$BA43QJ8;z$NJQ49$O9T$J$o$:!“e(B
e$B=PNOB&$Ne(B --oc
e$B$N;XDj$K$h$C$FH>3Q%+%Je(B-e$BA43QJ8;z$NJQ49$r$9$kJ}$,NI$$$N$G$Oe(B?
Windows e$B$G$Ne(B cp50220 e$B$de(B cp50221
e$B$O!”$=$N$h$&$K$J$C$F$$$k!#e(B
nkf
e$B$O%G%U%)%k%H$GH>3Q%+%J$rA43QJ8;z$KJQ49$9$k$h$&$K:n$i$l$F$$$k$Ne(B
e$B$G!"e(B–ic, --oc e$B%*%W%7%g%s$H$NAj@-$,0-$$$G$9$M!#e(B
e$B!{e(B ISO-2022-JP-MS e$B$He(B CP5022X e$B$K$D$$$Fe(B
ISO-20222-JP-MS e$B$r:o=|$7$F!"e(BCP50220e$B!“e(BCP50221
e$B$r;H$&;v$K0[O@$O$”$j$^$;$s!#e(B
e$B$A$J$$K!"e(Bnkf CVS e$BHG$Ge(B cp5022x
e$B$N%f!<%6!<Dj5AJ8;z$NBP1~$rD4$Y$F$$?e(B
e$B=j!"<!$N$h$&$K$J$C$F$$$^$7$?!#e(B
$ ruby -e ‘print “\xf0\x40”’ | ./nkf --ic=cp932 --oc=cp50220 | od -tx1
0000000 1b 24 42 75 21 1b 28 42
0000010
$ ruby -e ‘print “\xf5\x40”’ | ./nkf --ic=cp932 --oc=cp50220 | od -tx1
0000000 1b 24 28 44 75 21 1b 28 42
0000011
Windows
e$B8_49$K$9$k$N$G$“$l$P!”<!$N$h$&$JJQ49$,K>$^$7$$$H$$$($k$G$7$g$&!#e(B
$ ruby -e ‘print “\xf0\x40”’ | ./nkf --ic=cp932 --oc=cp50220 | od -tx1
0000000 1b 24 42 7f 21 1b 28 42
0000010
$ ruby -e ‘print “\xf5\x40”’ | ./nkf --ic=cp932 --oc=cp50220 | od -tx1
0000000 1b 24 42 89 21 1b 28 42
0000010
e$B;29Me(B)
http://legacy-encoding.sourceforge.jp/wiki/index.php?cp50220
94x94 e$B=89g$+$i$O$_=P$9%3!<%INN0h$b;H$C$F$$$k$?$a!“e(BISO/IEC 2022
e$BE*$K$Oe(B
e$B4V0c$$$G$9$,!“e(BWindows
e$B$H$N8_49@-$r=E;k$9$k$N$G$”$l$P!”$3$&$;$6$k$rF@$Je(B
e$B$$$G$7$g$&!#e(B
e$B8=<BLdBj$H$7$Fe(B
JISe$B%3!<%I$G%f!<%6!<Dj5AJ8;z$r07$&I,MW@-$ODc$$$H;W$$$^e(B
e$B$9$1$l$I$b!De(B
e$B$5$i$KFM$C9~$s$@5DO@$7$?$$$H$$$&;v$G$"$l$P!"e(Bcp5022x
e$B$J$I$N5DO@$O!"e(B
Legacy-Encoding-talk-ja e$B%a!<%j%s%0%j%9%H!"e(Bnkf
e$B$NIT6q9gEy$O!"e(Bnkf-dev e$B$Ge(B
e$B5DO@$7$?J}$,$$$$$G$7$g$&$M!#e(B
Legacy-Encoding-talk-ja e$B%a!<%j%s%0%j%9%He(B
http://lists.sourceforge.jp/mailman/listinfo/legacy-encoding-talk-ja
Nkf-dev e$B%a!<%j%s%0%j%9%He(B
http://lists.sourceforge.jp/mailman/listinfo/nkf-dev