Binary String

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B
encoding e$B$K$D$$$F$NOC$G$9!%4V0c$C$F$$$l$PD{@5$/[email protected]$5$$!%e(B

binary string [email protected]<($G$-$k$h$&$Je(B encoding e$B$re(B
[email protected]$1$J$$$G$7$g$&$+!)e(B

Tcl/Tk e$B$Ne(B encoding names e$B$G$Oe(B ‘identity’

e$B$H$J$k$b$N!%e(B

Ruby/Tk e$B$G$O!$e(Bruby e$B$+$ie(B tk e$B$KJ8;zNs$rAw$k:]!$e(B
e$B%7%9%F%`$Ne(B encoding e$B>pJs$K4p$E$-!$e(Butf-8
e$B$K<+F0JQ49$7$FAw$C$F$$$^$9!%e(B
[email protected]<($,ITMW!W$H$$$&%f!<%[email protected]$r9M$($F$N$3$H$G$9!%e(B

Ruby 1.8 e$B$G$Oe(B $KCODE e$B$He(B Tk e$B$Ne(B encoding system
e$B$H$rMQ$$$F$$$^$7$?!%e(B

e$B8=>u$Ne(B Ruby 1.9 e$B$r8+$k$H!$e(Bencoding e$BL$;XDj$N>l9g$Ne(B
encoding e$B$Oe(B
ASCII-8BIT e$B$H$5$l$k$h$&$K;W$($^$9!%e(B
e$B<+F0JQ49$Oe(B Encoding.default_external
e$B$r;2>H$9$k$3$H$K$J$k$G$7$g$&!%e(B
e$B$D$^$j!$e(BASCII-8BIT e$B$G$"$k>l9g$O!$e(B
e$B<B:]$K$Oe(B Encoding.default_external e$B$Ne(B encoding
e$B$G$"$k$H2>Dj$7$Fe(B
utf-8 e$B$X$N<+F0JQ49$r$+$1$k$o$1$G$9!%e(B

e$B0lHLE*$J>u67$G$O$3$l$GLdBj$J$$$N$G$9$,!$e(B
binary data e$B$r07$&>l9g$K:$$j$^$9!%e(B

binary data e$B$K$O<+F0JQ49$r$+$1$F$O$J$i$J$$$o$1$G$9$,!$e(B
binary data e$B$G$"[email protected]$K6hJL$G$-$k>pJs$re(B
e$B%*%V%8%’%/%H$,;}$C$F$$$J$1$l$PJQ49$9$Y$-$+H]$+$rH=CG$G$-$^$;$s!%e(B
e$BH=CG$G$-$J$$$H$$$&$3$H$O<+F0JQ49$N$9$Y$F$rD|$a$M$P$J$i$:!$e(B
[email protected]<(ITMW!W$H$$$&[email protected]$r%f!<%6$,<:$&$3$H$K$J$j$^$9!%e(B

UNKNOWN-8BIT e$B$,F3F~$5$l$F$b>u67$OJQ$j$^$;$s!%e(B
ASCII-8BIT e$B$Oe(B ASCII-8BIT -> UTF-8 e$B$N<+F0JQ49$r9T$&$7!$e(B
UNKNOWN-8BIT e$B$Oe(B Encoding.default_external
e$B$r;2>H$KJQ49$9$k$G$7$g$&!%e(B
e$B$G$9$N$G!$e(BUNKNOWN-8BIT e$B$re(B binary data
e$BMQ$K$9$k$3$H$O$G$-$^$;$s!%e(B

Ruby 1.8 e$B$Ne(B Ruby/Tk e$B$G9T$C$?$h$&$K!$e(B
e$BFCJL$JJ8;zNs%/%i%9$r;H$C$F>r7oJ,$1$GBP1~$r$9$k$3$H$O2DG=$G$9$,!$e(B
e$B$;$C$+$/J8;zNs$Ke(B encoding e$B>pJs$r;}$?$;$F$$$k$N$Ke(B
e$BE}0lE*$J=hM}$,$G$-$J$$$N$O4r$7$/$"$j$^$;$s!%e(B

e$B$5$i$K!$5UJ}8~$NLdBj$b$"$j$^$9!%e(B
tk e$B$+$ie(B ruby e$B$Ke(B binary data
e$B$rJV$9$H$-$K$I$&$9$Y$-$+$G$9!%e(B
ASCII-8BIT e$B$de(B UNKNOWN-8BIT e$B$K$7$F$7$^$&$H!$e(B
e$B:FEYe(B tk e$B$KAw$k:]$J$I$KLLE]$K$J$j$^$9!%e(B

e$BB>$Ne(B encoding e$B$X$NJQ49$,$G$-$J$$e(B ‘IDENTITY’
e$B$H$$$&$h$&$Je(B
encoding e$B$,B8:_$9$l$P!$LdBjH/@8$r2sHr$9$k$3$H$,$G$-$^$9!%e(B

e$BB?J,[email protected]$H$7$F$O!$e(B

  • e$BB>$X$Ne(B encode e$B$,MW5a$5$l$?>l9g$O!$e(B
    e$BNc30$r>e$2$:$K$=$N$^$^e(B (‘IDENTITY’ e$B$N$^$^e(B) e$B$rJV$9!%e(B

  • e$BB>$NJ8;zNs$H$NO"7k$N:]$K$O!$e(B
    e$BAj<j$be(B ‘IDENTITY’ e$B$N>l9g$O$=$N$^$^O"7k$9$k$,!$e(B
    e$B$=$&$G$J$$>l9g$ONc30$rH/@8$9$k!%e(B

e$B$H$$$&$b$N$K$J$k$N$G$O$J$$$+$H$$$&5$$,$7$^$9!%e(B

Array#pack e$B$N=PNO$J$I$be(B ‘IDENTITY’ e$B$H$9$Y$-!)e(B

e$B!V$=$s$J?4G[$7$J$/$F$b!$$3$&$9$l$P$$$$$h!W$H$$$&J}K!$,$"$j$^$7$?$ie(B
e$B$<$R$*65$($/[email protected]$5$$!%e(B
e$B$=$&$7$?J}K!$,$J$1$l$P!$e(Bbinary data e$BMQ$Ne(B encoding
e$B$NF3F~$re(B
[email protected]$1$k$H=u$+$j$^$9!%e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:32550] Binary String”
on Wed, 12 Dec 2007 14:56:29 +0900, Hidetoshi NAGAI
[email protected] writes:
|
|e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B
|encoding e$B$K$D$$$F$NOC$G$9!%4V0c$C$F$$$l$PD{@5$/[email protected]$5$$!%e(B
|
|binary string [email protected]<($G$-$k$h$&$Je(B encoding e$B$re(B
|[email protected]$1$J$$$G$7$g$&$+!)e(B
|
|# Tcl/Tk e$B$Ne(B encoding names e$B$G$Oe(B ‘identity’ e$B$H$J$k$b$N!%e(B
|
|Ruby/Tk e$B$G$O!$e(Bruby e$B$+$ie(B tk e$B$KJ8;zNs$rAw$k:]!$e(B
|e$B%7%9%F%`$Ne(B encoding e$B>pJs$K4p$E$-!$e(Butf-8 e$B$K<+F0JQ49$7$FAw$C$F$$$^$9!%e(B
|[email protected]<($,ITMW!W$H$$$&%f!<%[email protected]$r9M$($F$N$3$H$G$9!%e(B
|
|Ruby 1.8 e$B$G$Oe(B $KCODE e$B$He(B Tk e$B$Ne(B encoding system e$B$H$rMQ$$$F$$$^$7$?!%e(B
|
|e$B8=>u$Ne(B Ruby 1.9 e$B$r8+$k$H!$e(Bencoding e$BL$;XDj$N>l9g$Ne(B encoding e$B$Oe(B
|ASCII-8BIT e$B$H$5$l$k$h$&$K;W$($^$9!%e(B
|e$B<+F0JQ49$Oe(B Encoding.default_external e$B$r;2>H$9$k$3$H$K$J$k$G$7$g$&!%e(B
|e$B$D$^$j!$e(BASCII-8BIT e$B$G$"$k>l9g$O!$e(B
|e$B<B:]$K$Oe(B Encoding.default_external e$B$Ne(B encoding e$B$G$"$k$H2>Dj$7$Fe(B
|utf-8 e$B$X$N<+F0JQ49$r$+$1$k$o$1$G$9!%e(B

default_externale$B$,@_Dj$5$l$F$$$l$P!"$=$N%(%s%3!<%G%#%s%0$G$“e(B
e$B$k$HJ,$+$C$F$$$kJ8;zNs$K$Oe(Bdefault_externale$B%(%s%3!<%G%#%s%0$,e(B
e$B$9$G$KIUM?$5$l$F$$$k$O$:$G$9$+$i!”$"$kJ8;zNs$,e(BASCII-8BITe$B$G$“e(B
e$B$k$H$$$&$3$H$O!”$=$NJ8;zNs$N%(%s%3!<%G%#%s%[email protected]<(E*$K;XDj$5e(B
e$B$l$F$$$J$$e(B(e$B$o$+$i$J$$e(B)e$B$H$$$&$3$H$r0UL#[email protected]$H;W$$$^$9!#e(B

e$B$N$G!"$3$l$Oe(Bidentitye$B$HF1MM$K07$($P$h$$e(B(e$B$C$F$$$&$+!"0EL[$NJQ49e(B
e$B$r$7$F$O$$$1$J$$e(B)e$B$H;W$&$N$G$9$,$I$&$G$7$g$&!)e(B

                            e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: Yukihiro M. [email protected]
Subject: [ruby-dev:32551] Re: Binary String
Date: Wed, 12 Dec 2007 15:38:50 +0900
Message-ID: [email protected]

default_externale$B$,@_Dj$5$l$F$$$l$P!"$=$N%(%s%3!<%G%#%s%0$G$“e(B
e$B$k$HJ,$+$C$F$$$kJ8;zNs$K$Oe(Bdefault_externale$B%(%s%3!<%G%#%s%0$,e(B
e$B$9$G$KIUM?$5$l$F$$$k$O$:$G$9$+$i!”$"$kJ8;zNs$,e(BASCII-8BITe$B$G$“e(B
e$B$k$H$$$&$3$H$O!”$=$NJ8;zNs$N%(%s%3!<%G%#%s%[email protected]<(E*$K;XDj$5e(B
e$B$l$F$$$J$$e(B(e$B$o$+$i$J$$e(B)e$B$H$$$&$3$H$r0UL#[email protected]$H;W$$$^$9!#e(B

e$B$N$G!"$3$l$Oe(Bidentitye$B$HF1MM$K07$($P$h$$e(B(e$B$C$F$$$&$+!"0EL[$NJQ49e(B
e$B$r$7$F$O$$$1$J$$e(B)e$B$H;W$&$N$G$9$,$I$&$G$7$g$&!)e(B

e$B!V$=$N%(%s%3!<%G%#%s%0$G$"$k$HJ,$+$C$F$$$k!W$H$$$&$N$,6J<T$G$9!%e(B

irb e$B$G<B9T$7$?$?$a$J$N$+$b$7$l$^$;$s$,!$e(B
Encoding.default_external e$B$,e(B EUC-JP e$B$N>uBV$G!$e(B
‘e$B4A;ze(B’.encoding e$B$H$9$k$He(B ASCII-8BIT e$B$,JV$C$F$-$^$9!%e(B
e$B$3$l$rL5JQ49$Ge(B Tk
e$B$KAw$j9~$`$HEvA3J8;z2=$1$9$k$3$H$K$J$j$^$9!%e(B

e$B!Ve(B Encoding
[email protected]<([email protected]$+$i;EJ}$J$$!W$H$$$&9M$($b$"$k$H$Oe(B
e$B;W$$$^$9$,[email protected]<($7$F$$$J$$$J$ie(B default_external
e$B$rA[Dj$9$k$H$$$&$N$be(B
e$B$5$[$I8m$C$?BP1~$G$"$k$H$O;W$($^$;$s!%e(B

e$B$=$l$H$b!$>e5->r7o$Ge(B ‘e$B4A;ze(B’.encoding e$B$,e(B ASCII-8BIT
e$B$rJV$9$3$H<+BN$,e(B
e$B%P%0$H$$$&$3$H$G$7$g$&$+!)e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:32552] Re: Binary String”
on Wed, 12 Dec 2007 16:05:43 +0900, Hidetoshi NAGAI
[email protected] writes:

|e$B!V$=$N%(%s%3!<%G%#%s%0$G$"$k$HJ,$+$C$F$$$k!W$H$$$&$N$,6J<T$G$9!%e(B
|
|irb e$B$G<B9T$7$?$?$a$J$N$+$b$7$l$^$;$s$,!$e(B
|Encoding.default_external e$B$,e(B EUC-JP e$B$N>uBV$G!$e(B
|‘e$B4A;ze(B’.encoding e$B$H$9$k$He(B ASCII-8BIT e$B$,JV$C$F$-$^$9!%e(B
|e$B$3$l$rL5JQ49$Ge(B Tk e$B$KAw$j9~$`$HEvA3J8;z2=$1$9$k$3$H$K$J$j$^$9!%e(B

e$B$"!<!"$9$$$^$;$s!#$=$3$O$^[email protected]<BAu$5$l$F$$$J$$$N$G$9!#$N$G!"8=e(B
e$B:_$N<BAu$r$b$H$KH=CG$9$k$H4V0c$&$3$H$K$J$j$^$9!#e(B

|e$B$=$l$H$b!$>e5->r7o$Ge(B ‘e$B4A;ze(B’.encoding e$B$,e(B ASCII-8BIT e$B$rJV$9$3$H<+BN$,e(B
|e$B%P%0$H$$$&$3$H$G$7$g$&$+!)e(B

e$B$G$9!#e(B

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: Yukihiro M. [email protected]
Subject: [ruby-dev:32553] Re: Binary String
Date: Wed, 12 Dec 2007 16:07:57 +0900
Message-ID: [email protected]

|irb e$B$G<B9T$7$?$?$a$J$N$+$b$7$l$^$;$s$,!$e(B
|Encoding.default_external e$B$,e(B EUC-JP e$B$N>uBV$G!$e(B
|‘e$B4A;ze(B’.encoding e$B$H$9$k$He(B ASCII-8BIT e$B$,JV$C$F$-$^$9!%e(B
|e$B$3$l$rL5JQ49$Ge(B Tk e$B$KAw$j9~$`$HEvA3J8;z2=$1$9$k$3$H$K$J$j$^$9!%e(B

e$B$"!<!"$9$$$^$;$s!#$=$3$O$^[email protected]<BAu$5$l$F$$$J$$$N$G$9!#$N$G!"8=e(B
e$B:_$N<BAu$r$b$H$KH=CG$9$k$H4V0c$&$3$H$K$J$j$^$9!#e(B

e$B$"!$$=$&$$$&$3$H$G$9$+!%e(B
e$B;~4|$,;~4|$G$9$7!$$3$NJU$j$OBAu:[email protected]$m$&$H!<j$K;W$C$F$^$7$?!%e(B

e$B$G$O!$e(Bencoding e$B;XDj$,$J$$!$$"[email protected]$J>l9g$O!$e(B
e$BI,$:e(B default_external e$B$K$J$k$H9M$($F$$$$$N$G$7$g$&$+!)e(B
e$B$G!$e(Bdefault_external e$B$,e(B ASCII-8BIT
[email protected]_Dj$5$l$k$3$H$O$J$$$H!%e(B

e$B$=$l$,J]>Z$5$l$k$N$G$"$l$PLdBj$O$J$5$=$&$G$9!%e(B
e$BJ]>Z$5$l$J$$$N$G$"$l$P!$e(BASCII-8BIT
e$B$H$J$k$N$O$I$&$$$&%1!<%9$+$re(B
e$B65$([email protected]$-$?$$$H;W$C$F$^$9!%e(B
e$B$=$N7k2L<!Bh$G!$MWK>$,JQ$k$+$b$7$l$^$;$s!%e(B

Martin e$B$5$s$N%a!<%ke(B [ruby-dev:32554] [email protected]$H$9$k$H!$e(B

e$B4r$7$/$J$$7A$Ge(B ASCII-8BIT

e$B$K$J$C$F$7$^$&%1!<%9$,$"$k$h$&$K8+$($^$9!%e(B

e$B$=$&$G$"$k$J$i!$$d$O$j0BA43N<B$Je(B binary data e$B$N$?$a$Ne(B

encoding e$B$,e(B

e$BM_$7$$$H46$8$^$9!%e(B

[email protected]$rDI$$$-$l$F$$$J$$$N$G!$e(B
e$BF\[email protected]$C$F$$$?$i$4$a$s$J$5$$!%e(B

e$B$=$l$O$=$l$H$7$F!%!%!%e(B
Ruby e$B$G$Ne(B encoding e$BL>$He(B Tk e$B$G$Ne(B encoding e$BL>$H$Ge(B
e$BBP1~I=$rMQ0U$7$F$*$/I,MW$,$"$k$+$b$H;W$C$F$$$^$9!%e(B
Tcl/Tk e$B$Ne(B lsort [encoding names] e$B$N7k2L$Oe(B

ascii big5 cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257
cp1258 cp437 cp737 cp775 cp850 cp852 cp855 cp857 cp860 cp861 cp862
cp863 cp864 cp865 cp866 cp869 cp874 cp932 cp936 cp949 cp950 dingbats
ebcdic euc-cn euc-jp euc-kr gb12345 gb1988 gb2312 gb2312-raw identity
iso2022 iso2022-jp iso2022-kr iso8859-1 iso8859-10 iso8859-13
iso8859-14 iso8859-15 iso8859-16 iso8859-2 iso8859-3 iso8859-4
iso8859-5 iso8859-6 iso8859-7 iso8859-8 iso8859-9 jis0201 jis0208
jis0212 koi8-r koi8-u ksc5601 macCentEuro macCroatian macCyrillic
macDingbats macGreek macIceland macJapan macRoman macRomania macThai
macTurkish macUkraine shiftjis symbol tis-620 unicode utf-8

At 16:07 07/12/12, Yukihiro M. wrote:

|‘e$B4A;ze(B’.encoding e$B$H$9$k$He(B ASCII-8BIT e$B$,JV$C$F$-$^$9!%e(B
|e$B$3$l$rL5JQ49$Ge(B Tk e$B$KAw$j9~$`$HEvA3J8;z2=$1$9$k$3$H$K$J$j$^$9!%e(B

e$B$"!<!"$9$$$^$;$s!#$=$3$O$^[email protected]<BAu$5$l$F$$$J$$$N$G$9!#$N$G!"8=e(B
e$B:_$N<BAu$r$b$H$KH=CG$9$k$H4V0c$&$3$H$K$J$j$^$9!#e(B

|e$B$=$l$H$b!$>e5->r7o$Ge(B ‘e$B4A;ze(B’.encoding e$B$,e(B ASCII-8BIT e$B$rJV$9$3$H<+BN$,e(B
|e$B%P%0$H$$$&$3$H$G$7$g$&$+!)e(B

e$B$G$9!#e(B

e$B3NG’$G$9$,!"e(B
irb e$B$_$?$$$J>u67$N>l9g$K$Oe(B Ruby e$B$N%W%m%0%i%F~NO$rB>$Ne(B (e$B%G!<%?$Ne(B) e$BF~NO$HF1MM$Ke(B Encoding.default_external e$B$H8+$J$7$?J}$,$$$$$H;W$$$^$9!#e(B -e e$B$dI8=F~NO$+$i$N%W%m%0%i%F~NO$bF1Ey$H;W$$$^$9!#$7$+$7!"%U%!%$%ke(B e$B$+$i$N%W%m%0%i%FI$9~$$N;~$K$OJ8;z%3!<%I$r0l9TL\Ev$?$j$Ne(B
encoding:
e$B$J$I$N%3%a%s%H$,L5$$$He(B ASCII-8BIT e$B$K$J$j$^$9$h$M!#e(B

e$B59$7$/$*4j$$$7$^$9!#e(B Martin.

#-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-# http://www.sw.it.aoyama.ac.jp mailto:[email protected]

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:32560] Re: Binary String”
on Thu, 13 Dec 2007 02:07:11 +0900, Hidetoshi NAGAI
[email protected] writes:

|e$B$G$O!$e(Bencoding e$B;XDj$,$J$$!$$"[email protected]$J>l9g$O!$e(B
|e$BI,$:e(B default_external e$B$K$J$k$H9M$($F$$$$$N$G$7$g$&$+!)e(B

e$B30It$+$iF~NO$5$l$?%G!<%?$N$&$A!“e([email protected]$i$+$J$b$Ne(B
e$B$O!“e(Bdefault_externale$B%(%s%3!<%G%#%s%0$,IUM?$5$l$^$9!#5U$Ke(B
binarye$B$G$”[email protected]$,$”$k$b$N$K$D$$$F$Oe(Bascii-8bite$B$K$J$j$^$9!#e(B

|e$B$G!$e(Bdefault_external e$B$,e(B ASCII-8BIT [email protected]_Dj$5$l$k$3$H$O$J$$$H!%e(B

e$B$3$A$i$O$"$j$($^$9!#L@<(E*$Ke(Bdefault_externale$B$re(BASCIIe$B$K;XDj$7$?e(B
e$B>l9g$H$+!“CN$i$J$$%(%s%3!<%G%#%s%0$N%m%1!<%[email protected]$C$?$j$H$+!#$Ge(B
e$B$b!”$=$N>l9g$K$O30It$+$iF~NO$5$l$?%G!<%?$N%(%s%3!<%G%#%s%0$Oe(B
ASCIIe$B$G$"$k$H9M$($F$h$$$N$G!“e(BUTF-8e$B$,BP>]$G$”$l$PJQ49$OITMW$Ge(B
e$B$O$J$$$+$H;W$$$^$9!#BP>]$,e(BUTF-16e$B$N>l9g$K$Oe(Bbinarye$B$He([email protected](B
e$B$K6hJL$9$kI,MW$,=P$F$-$^$9$,!#e(B

                            e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)

[email protected]$G$9!#e(B

At Thu, 13 Dec 2007 02:07:11 +0900,
Hidetoshi NAGAI wrote in [ruby-dev:32560]:

e$B$G$O!$e(Bencoding e$B;XDj$,$J$$!$$"[email protected]$J>l9g$O!$e(B
e$BI,$:e(B default_external e$B$K$J$k$H9M$($F$$$$$N$G$7$g$&$+!)e(B
e$B$G!$e(Bdefault_external e$B$,e(B ASCII-8BIT [email protected]_Dj$5$l$k$3$H$O$J$$$H!%e(B

LANGe$B$,%;%C%H$5$l$F$$$J$+$C$?$j!"BP1~$7$F$$$J$$%(%s%3!<%G%#%s%0$,e(B
e$B;XDj$5$l$F$$$l$P!"e(BASCII-8BITe$B$K$J$j$^$9!#e(B

Martin e$B$5$s$N%a!<%ke(B [ruby-dev:32554] [email protected]$H$9$k$H!$e(B

e$B4r$7$/$J$$7A$Ge(B ASCII-8BIT e$B$K$J$C$F$7$^$&%1!<%9$,$"$k$h$&$K8+$($^$9!%e(B

e$B%9%/%j%W%H%(%s%3!<%G%#%s%0$NOC$G$9$+$i!"[email protected]$H;W$$$^$9!#e(B

e$B$=$&$G$"$k$J$i!$$d$O$j0BA43N<B$Je(B binary data e$B$N$?$a$Ne(B encoding e$B$,e(B

e$BM_$7$$$H46$8$^$9!%e(B

e$BI,MW$=$&$G$9$M!#e(B

iso8859-14 iso8859-15 iso8859-16 iso8859-2 iso8859-3 iso8859-4
iso8859-5 iso8859-6 iso8859-7 iso8859-8 iso8859-9 jis0201 jis0208
jis0212 koi8-r koi8-u ksc5601 macCentEuro macCroatian macCyrillic
macDingbats macGreek macIceland macJapan macRoman macRomania macThai
macTurkish macUkraine shiftjis symbol tis-620 unicode utf-8

e$B$H$$$&46$8$J$N$G$9$,!$e(BRuby e$B$Ne(B m17n e$B$G$O$I$&$J$j$=$&$G$7$g$&$+!)e(B

onigurumae$B$HF1$8$K$J$k$O$:$G$9!#e(B

$ l enc
ascii.c iso8859_1.c iso8859_2.c iso8859_9.c utf32_be.c
big5.c iso8859_10.c iso8859_3.c koi8.c utf32_le.c
cp1251.c iso8859_11.c iso8859_4.c koi8_r.c utf8.c
euc_jp.c iso8859_13.c iso8859_5.c sjis.c
euc_kr.c iso8859_14.c iso8859_6.c unicode.c
euc_tw.c iso8859_15.c iso8859_7.c utf16_be.c
gb18030.c iso8859_16.c iso8859_8.c utf16_le.c

e$B$^[email protected]$[$H$s$I<j$D$+$:$G$9$,!#e(B

At 03:43 07/12/13, Nobuyoshi N. wrote:

iso8859-14 iso8859-15 iso8859-16 iso8859-2 iso8859-3 iso8859-4
ascii.c iso8859_1.c iso8859_2.c iso8859_9.c utf32_be.c
big5.c iso8859_10.c iso8859_3.c koi8.c utf32_le.c
cp1251.c iso8859_11.c iso8859_4.c koi8_r.c utf8.c
euc_jp.c iso8859_13.c iso8859_5.c sjis.c
euc_kr.c iso8859_14.c iso8859_6.c unicode.c
euc_tw.c iso8859_15.c iso8859_7.c utf16_be.c
gb18030.c iso8859_16.c iso8859_8.c utf16_le.c

[email protected]$:!"$I$NJ8;z%3!<%I$,%5%]!<%H$5$l$F$$$k$+!"$I$3$^$G%5%]!<%H$5$l$F$$$k$+e(B
(e$BNc$([email protected]$1!"L>A0$H$7$F$Ne(B
Encodinge$B!"J8;z%3!<%I$N!V9=B$!W!"Ey$J$Ie(B) e$B$H!“e(B
e$BL>A0$=$N$b$N$r6hJL$9$kI,MW$,$”$j$^$9!#e(B

e$BL>[email protected]'Hs$b$&$A$g$C$H$O$C$-$j$7$?J}?K$,I,[email protected]$H;W$$$^$9!#e(B
e$B86B’E*$K$O%$%s%?!<%M%C%H$GI}9-$/;H$o$l$F$$$kL>A0$r;H$&$Y$-$G$"$k$He(B
e$B;W$C$F$$$^$9e(B
(http://www.iana.org/assignments/character-sets)e$B!#e(B

e$B$=$&$9$k$HNc$($Pe(B Latin-1 e$B$H$$$o$l$k$b$N$N>l9g!“e(BISO-8859-1
(e$BBgJ8;z>.J8;z$O4X78$J$/e(B)
e$B$K$9$k$Y$-$G$9!#8=:_$OBgBN$=$NJ}8~$Ge(B
e$BF0$$$F$$$^$9$,!”$b$&$A$g$C$H$O$C$-$j$7$?J}$,$$$$$H;W$$$^$9!#e(B
e$B2?$+$N%i%$%V%i%j$GDV$j$,0c$C$?$i!"$=$N%i%$%V%i%j$He(B Ruby e$B$re(B
e$B$D$J$$$G$$$k$H$3$m$GBP1~$r<h$C$?J}$,$$$$$H;W$$$^$9!#e(B
Oniguruma e$B$N>e5-$N%j%9%H$O$"$/$^$G$b%U%!%$%kL>$G!"e(B
Encoding e$B$NL>A0$G$O$J$$!#%U%!%$%kL>$G$Oe(B ‘-’
e$B$b;H$([email protected]$m$&$,!"e(B
e$BFC$KJQ?tL>$G$Oe(B ‘-’ e$B$O;H$($^$;$s!#e(B

e$B59$7$/$*4j$$$7$^$9!#e(B Martin.

#-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-# http://www.sw.it.aoyama.ac.jp mailto:[email protected]

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: Nobuyoshi N. [email protected]
Subject: [ruby-dev:32561] Re: Binary String
Date: Thu, 13 Dec 2007 03:43:41 +0900
Message-ID: [email protected]

e$B$=$&$G$"$k$J$i!$$d$O$j0BA43N<B$Je(B binary data e$B$N$?$a$Ne(B encoding e$B$,e(B

e$BM_$7$$$H46$8$^$9!%e(B

e$BI,MW$=$&$G$9$M!#e(B

binary data e$BMQe(B encoding e$B$,F3F~$5$l$k$3$H$K4|BT$7$^$9!%e(B

e$B$=$l$O$=$l$H$7$F!%!%!%e(B
Ruby e$B$G$Ne(B encoding e$BL>$He(B Tk e$B$G$Ne(B encoding e$BL>$H$Ge(B
e$BBP1~I=$rMQ0U$7$F$*$/I,MW$,$"$k$+$b$H;W$C$F$$$^$9!%e(B
Tcl/Tk e$B$Ne(B lsort [encoding names] e$B$N7k2L$Oe(B
(snip)

e$B$H$$$&46$8$J$N$G$9$,!$e(BRuby e$B$Ne(B m17n e$B$G$O$I$&$J$j$=$&$G$7$g$&$+!)e(B

onigurumae$B$HF1$8$K$J$k$O$:$G$9!#e(B

e$BN;2r$G$9!%$=$NA0Ds$G9M$($k$3$H$K$7$^$9!%e(B

e$B$H$O$$$(!$D>@$KBP1~$9$k$b$N$,$J$$$b$N$K$D$$$F$Oe(B

e$B$I$&$9$k$+!%!%!%e(B(^_^;

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:32583] Re: Binary String”
on Thu, 13 Dec 2007 23:54:46 +0900, Hidetoshi NAGAI
[email protected] writes:

|e$B7k6I$N$H$3$m!$e(Bbinary e$B$G$"$k$3$H$,[email protected]$G$"$k>l9g$G$"$C$F$b!$e(B
|e$B!Ve(Bbinary e$B$G$"$k!W$H$$$&;v<[email protected]$K5-O?$7$F$*$/$3$H$O$G$-$J$$e(B
|e$B$H$$$&$3$H$G$9$h$M!)e(B

e$B8=>u$G$O$=$&$G$9$M!#e(B

|e$B$^$D$b$H$5$s$Oe(B binary string e$B$rI=$9e(B encodng e$B$NF3F~$K$Oe(B
|e$B>h$j5$$G$J$$$h$&$K$*8+<u$1$7$^$9$,!$$=$NM}M3$O2?$J$N$G$7$g$&$+!)e(B
|
|e$BAG?M9M$($G$O!$e(Bbinary e$B$rI=$9e(B encoding e$B$rF3F~$9$k$3$H$G!$e(B
|binary string e$B$G$"$k$3$H$,[email protected]=$5$l$F4r$7$$$H$$$&$3$H$O$"$C$F$be(B
|e$B$=$Ne(B encoding e$B$NB8:_$,LdBj$H$J$k$3$H$O$J$$$h$&$K46$8$^$9!%e(B

e$B$^$:!"$$$^$^$Ge(BRubye$B$K$Oe(Bbinarye$B$H$$$&$b$N$O$J$/$F$=$l$J$j$KF0$$e(B
e$B$F$-$?$o$1$G$9!#$H$$$&$3$H$O!"<B$Oe(Bbinarye$B$OITMW$G$O$J$$$+$H$$e(B
e$B$&$N$,;d$N9M$($G$9!#e(B

e$B$7$+$b!“e(Bbinarye$B$rF3F~$7$F$b$[$s$H$&[email protected]$7$/e(Bbinarye$B$,E,MQ$G$-$ke(B
e$B6ILL$,[email protected]$1$”$k$+$H9M$($k$H!"5!3#$,<+F0E*$KH=CG$9$k$3$H$Oe(B
[email protected]$H;W$$$^$9!#$N$G!"8=>u$Ne(BASCII-8BITe$B$HF13J$Ke(Bbinarye$B$J$ke(B
e$B$b$N$rF3F~$9$k$3$H$K$O;[email protected]$7$^$;$s!#e(B

e$B$7$+$7!"?M4V$,<+3P$N>e$G!V$3$l$OJQ49$5$l$J$$!W$H;XDj$9$k$3$He(B
e$B$K$OLdBj$O$J$$$H;W$$$^$9$N$G!"e(Bbinarye$B$H$$$&e(Bencoding(e$B$=$N<BBN$Oe(B
ascii-8bite$B$N%l%W%j%+e(B)e$B$rMQ0U$7$F!“[email protected]<(E*$Ke(Bforce_encodinge$B$9$ke(B
(e$B$”$k$$$O30It%(%s%3!<%G%#%s%0$H$7$F;XDj$9$ke(B)e$B$H$$$&%9%?%$%k$Je(B
e$B$iH?BP$O$7$^$;$s!#e(B

                            e$B$^$D$b$He(B e$B$f$-$R$me(B /:|)

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: Yukihiro M. [email protected]
Subject: [ruby-dev:32564] Re: Binary String
Date: Thu, 13 Dec 2007 08:20:54 +0900
Message-ID: [email protected]

e$B30It$+$iF~NO$5$l$?%G!<%?$N$&$A!“e([email protected]$i$+$J$b$Ne(B
e$B$O!“e(Bdefault_externale$B%(%s%3!<%G%#%s%0$,IUM?$5$l$^$9!#5U$Ke(B
binarye$B$G$”[email protected]$,$”$k$b$N$K$D$$$F$Oe(Bascii-8bite$B$K$J$j$^$9!#e(B
(snip)
e$B$3$A$i$O$"$j$($^$9!#L@<(E*$Ke(Bdefault_externale$B$re(BASCIIe$B$K;XDj$7$?e(B
e$B>l9g$H$+!“CN$i$J$$%(%s%3!<%G%#%s%0$N%m%1!<%[email protected]$C$?$j$H$+!#$Ge(B
e$B$b!”$=$N>l9g$K$O30It$+$iF~NO$5$l$?%G!<%?$N%(%s%3!<%G%#%s%0$Oe(B
ASCIIe$B$G$"$k$H9M$($F$h$$$N$G!“e(BUTF-8e$B$,BP>]$G$”$l$PJQ49$OITMW$Ge(B
e$B$O$J$$$+$H;W$$$^$9!#BP>]$,e(BUTF-16e$B$N>l9g$K$Oe(Bbinarye$B$He([email protected](B
e$B$K6hJL$9$kI,MW$,=P$F$-$^$9$,!#e(B

e$B7k6I$N$H$3$m!$e(Bbinary e$B$G$"$k$3$H$,[email protected]$G$"$k>l9g$G$"$C$F$b!$e(B
e$B!Ve(Bbinary
e$B$G$"$k!W$H$$$&;v<[email protected]$K5-O?$7$F$*$/$3$H$O$G$-$J$$e(B
e$B$H$$$&$3$H$G$9$h$M!)e(B

e$B$^$D$b$H$5$s$Oe(B binary string e$B$rI=$9e(B encodng e$B$NF3F~$K$Oe(B
e$B>h$j5$$G$J$$$h$&$K$*8+<u$1$7$^$9$,!$$=$NM}M3$O2?$J$N$G$7$g$&$+!)e(B

e$BAG?M9M$($G$O!$e(Bbinary e$B$rI=$9e(B encoding
e$B$rF3F~$9$k$3$H$G!$e(B
binary string e$B$G$"$k$3$H$,[email protected]=$5$l$F4r$7$$$H$$$&$3$H$O$"$C$F$be(B
e$B$=$Ne(B encoding e$B$NB8:_$,LdBj$H$J$k$3$H$O$J$$$h$&$K46$8$^$9!%e(B

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: Yukihiro M. [email protected]
Subject: [ruby-dev:32586] Re: Binary String
Date: Fri, 14 Dec 2007 01:07:24 +0900
Message-ID: [email protected]

e$B$^$:!"$$$^$^$Ge(BRubye$B$K$Oe(Bbinarye$B$H$$$&$b$N$O$J$/$F$=$l$J$j$KF0$$e(B
e$B$F$-$?$o$1$G$9!#$H$$$&$3$H$O!"<B$Oe(Bbinarye$B$OITMW$G$O$J$$$+$H$$e(B
e$B$&$N$,;d$N9M$($G$9!#e(B

[ruby-dev:31999] e$B$G=q$+$;[email protected]$$$?DL$j!$e(B
Ruby/Tk e$B$G$Oe(B binary
e$B$G$"$k$3$H$r%^!<%/$7$F$$/$3$H$,I,MW$G$7$?!%e(B
1.8 e$B$^$G$Oe(B String e$B$,e(B encoding
e$B$N>pJs$r;}$C$F$$$J$+$C$?$?$a$Ke(B
Ruby/Tk e$BFH<+$Ke(B encoding e$B>pJs$r;}$?$;$F$^$7$?$,!$e(B
e$B$=$N:]$Ke(B binary e$B$G$"[email protected]<($G$-$F$$$J$1$l$Pe(B
e$B=hM}$,$-$A$s$H9T$($J$$e(B or
e$B<BAu$
$h$S%f!<%6$N<j4V$,A}Bg$9$k$?$a$G$9!%e(B

[ruby-dev:32000] e$B$Oe(B encoding e$BL>$re(B ‘binary’

e$B$H$$$&L>A0$G$O$J$/e(B

‘identity’ e$B$H$$$&L>A0$K$7$F$*$1$Pe(B

e$B$o$6$o$6>r7oJ,$1$9$kI,MW$,$J$+$C$?$H$$$&OC$G$"$j!$e(B

binary [email protected]<($Ne(B encoding

e$B$,I,MW$H$$$&$3$H$KJQ$o$j$O$"$j$^$;$s!%e(B

Ruby [email protected]$1$G$9$Y$FJD$8$F$$$k$J$i$Pe(B
binary [email protected]<($,$J$/$F$b2?$H$+$J$k$N$+$b$7$l$^$;$s$,!$e(B
e$B30It%i%$%V%i%j$H$NO"7H;~$Ke(B Ruby/Tk e$B$N%1!<%9$HN`;w$7$?$3$H$,e(B
e$BH/@[email protected]$O==J,$K$"$k$H;W$$$^$9!%e(B

e$B$b$A$m$s!$=>Mh$HF1MM$KFH<+$K0u$r$D$1$k$3$H$O2DG=$G$9$,!$e(B
Encoding e$B$NBN7O$NCf$KAH$_F~$l$?J}$,L5M}$J$/07$&$3$H$,$G$-$^$9!%e(B

e$B$7$+$b!“e(Bbinarye$B$rF3F~$7$F$b$[$s$H$&[email protected]$7$/e(Bbinarye$B$,E,MQ$G$-$ke(B
e$B6ILL$,[email protected]$1$”$k$+$H9M$($k$H!"5!3#$,<+F0E*$KH=CG$9$k$3$H$Oe(B
[email protected]$H;W$$$^$9!#$N$G!"8=>u$Ne(BASCII-8BITe$B$HF13J$Ke(Bbinarye$B$J$ke(B
e$B$b$N$rF3F~$9$k$3$H$K$O;[email protected]$7$^$;$s!#e(B

e$B$O$$!%e(B
e$B$b$A$m$s<+F0E*$JH=CG$r$5$;$k$3$H$O9M$($F$$$^$;$s$7!$e(B
[email protected]$H;W$$$^$9!%e(B
e$B%9%/%j%W%H>[email protected]$K;XDj$7$?>[email protected]_Dj$5$l$k$Y$-$b$N$G$9!%e(B
e$B$G$9$N$G!$e(B

e$B$7$+$7!"?M4V$,<+3P$N>e$G!V$3$l$OJQ49$5$l$J$$!W$H;XDj$9$k$3$He(B
e$B$K$OLdBj$O$J$$$H;W$$$^$9$N$G!"e(Bbinarye$B$H$$$&e(Bencoding(e$B$=$N<BBN$Oe(B
ascii-8bite$B$N%l%W%j%+e(B)e$B$rMQ0U$7$F!“[email protected]<(E*$Ke(Bforce_encodinge$B$9$ke(B
(e$B$”$k$$$O30It%(%s%3!<%G%#%s%0$H$7$F;XDj$9$ke(B)e$B$H$$$&%9%?%$%k$Je(B
e$B$iH?BP$O$7$^$;$s!#e(B

e$B$H$$$&$h$&[email protected]<($9$k$3$H$7$+9M$($F$$$^$;$s$G$7$?!%e(B

default_external [email protected]_Dj$G$-$J$$$h$&$K$9$k$N$,$h$$$H;W$$$^$9$,!$e(B

I/O e$B$Ne(B encoding e$B$H$7$F$O;XDj$G$-$k$h$&$K$9$k$N$OJXMx$+$b!%e(B

e$B$^$D$b$H$5$s!"$3$s$K$A$O!#e(B

At 01:07 07/12/14, Yukihiro M. wrote:

e$B8=>u$G$O$=$&$G$9$M!#e(B
e$B$&$N$,;d$N9M$($G$9!#e(B
e$B$9$_$^$;$s$,!"$A$g$C$H7Z$/[email protected]$9$k5$$K$J$j$^$7$?!#e(B
e$B$$$^$^$Ge(B (1.8) e$B$Ge(B Ruby e$B$Ge(B Encoding
e$B$H$$$&$b$N$O$J$/$F$b$=$l$J$j$Ke(B
e$BF0$$$F$-$?$o$1$G$9$h$M!#$H$$$&$3$H$O!"<B$Oe(B Encoding
[email protected]$O$J$$$+e(B
e$B$H$$$&0U8+$,$"[email protected]$^$9$h$M!#e(B

e$B$7$+$b!“e(Bbinarye$B$rF3F~$7$F$b$[$s$H$&[email protected]$7$/e(Bbinarye$B$,E,MQ$G$-$ke(B
e$B6ILL$,[email protected]$1$”$k$+$H9M$($k$H!"5!3#$,<+F0E*$KH=CG$9$k$3$H$Oe(B
[email protected]$H;W$$$^$9!#e(B

e$BF1$8$/B>$Ne(B Encoding e$B$rF3F~$7$F$b!“K\[email protected]$7$$e(B Encoding
e$B$,E,MQe(B
e$B$G$-$k6ILL$,[email protected]$1$”$k$G$7$g$&$+!#5!3#E*$J<+F0H=JL$O0lIt$NFCNce(B
e$B0J30$K$OIT2DG=$G$7$g$&!#e(B

e$B$N$G!"8=>u$Ne(BASCII-8BITe$B$HF13J$Ke(Bbinarye$B$J$ke(B
e$B$b$N$rF3F~$9$k$3$H$K$O;[email protected]$7$^$;$s!#e(B

e$BF13J$G$O$"$j$^$;$s!#e(BASCII-8BIT e$B$Oe(B asciicompat
e$B$G$9$,!“e(Bbinary
e$B$O$=$&$G$O$”$j$^$;$s!#e(B

e$B$7$+$7!"?M4V$,<+3P$N>e$G!V$3$l$OJQ49$5$l$J$$!W$H;XDj$9$k$3$He(B
e$B$K$OLdBj$O$J$$$H;W$$$^$9$N$G!"e(Bbinarye$B$H$$$&e(Bencoding(e$B$=$N<BBN$Oe(B
ascii-8bite$B$N%l%W%j%+e(B)e$B$rMQ0U$7$F!“[email protected]<(E*$Ke(Bforce_encodinge$B$9$ke(B
(e$B$”$k$$$O30It%(%s%3!<%G%#%s%0$H$7$F;XDj$9$ke(B)e$B$H$$$&%9%?%$%k$Je(B
e$B$iH?BP$O$7$^$;$s!#e(B

ascii-8bit e$B$N%l%W%j%+$r:n$k$He(B asciicompat e$B$K$J$j$^$9$,!“e(B
e$B$=$l$O$h$/$”$j$^$;$s!#e(B

[email protected]'Hs$48!F$$r59$7$/$*4j$$$7$^$9!#e(B Martin.

#-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-# http://www.sw.it.aoyama.ac.jp mailto:[email protected]

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: Nobuyoshi N. [email protected]
Subject: [ruby-dev:32561] Re: Binary String
Date: Thu, 13 Dec 2007 03:43:41 +0900
Message-ID: [email protected]

e$B$=$&$G$"$k$J$i!$$d$O$j0BA43N<B$Je(B binary data e$B$N$?$a$Ne(B encoding e$B$,e(B

e$BM_$7$$$H46$8$^$9!%e(B

e$BI,MW$=$&$G$9$M!#e(B

e$B$3$l$K4|BT$7$F$$$k$N$G$9$,!$F3F~$O%@%a$J$N$G$7$g$&$+!)e(B

e$B8=>u!$e(Bforce_encoding(‘binary’)
e$B$J$I$O<u$1IU$1$F$O$/$l$^$9$,!$e(B
encoding e$B$O7k6Ie(B ASCII-8BIT
e$B$H$J$C$F$7$^$&$N$G6hJL$,$G$-$:Lr$KN)$A$^$;$s!%e(B
e$B$G$9$N$G!$e(B

  • ASCII-8BIT e$B$Ne(B replica e$B$G$"$k!%e(B

  • BINARY e$B$+$i$Ne(B encode e$B%a%=%C%I$G$Ne(B encoding
    e$BJQ49$OG’$a$J$$e(B (e$BNc30H/@8e(B)e$B!%e(B

  • force_encoding e$B$O2DG=e(B (encoding
    e$B>pJs$rIU$1JQ$($k$N$_e(B)e$B!%e(B

  • BINARY e$B$X$NJQ49$OG$0U$Ne(B encoding e$B$+$i2DG=e(B
    (force_encoding e$B$HF1MMe(B(?)e$B$Ke(B encoding
    e$B>pJs$rIU$1JQ$($k$N$_e(B)e$B!%e(B

e$B$H$$$&;EMM$N$b$N$G$O%@%a$G$7$g$&$+!)e(B

e$B$I$&$7$F$bF3F~$rG’$a$F$b$i$($J$$>l9g!$e(B
e$B$b$73HD%%i%$%V%i%j$GFH<+$Ne(B encoding
e$B$rDj5A$9$k$3$H$,$G$-$k$J$i!$e(B
tcltklib e$B$Ge(B TK_IDENTITY e$B$J$I$H$$$&$h$&$Je(B encoding
e$B$r:[email protected]$7$Fe(B
e$B$=$l$r;H$&$H$$$&$h$&$J$3$H$b9M$($F$$$^$9!%e(B
Encoding e$B7O$Ne(B API e$B$,$I$&$J$C$F$$$k$N$+A4$/CN$i$J$$$N$G!$e(B
e$B2?$r$I$&$d$C$F$I$N$/$i$$$N:n6H$,I,MW$J$N$+$re(B
e$BA4A3J,$+$C$F$O$$$J$$$N$G$9$,!%!%!%e(B(^_^;

[email protected]$H$7$F$b!$%i%$%V%i%j$GFH<+$KDI2C$9$k$N$O$G$-$k8B$jHr$1$?$$$N$G!$e(B
[email protected]$1$^$9$h$&$*4j$$$7$^$9!%e(B

In article [email protected],
Hidetoshi NAGAI [email protected] writes:

e$B8=>u!$e(Bforce_encoding(‘binary’) e$B$J$I$O<u$1IU$1$F$O$/$l$^$9$,!$e(B
encoding e$B$O7k6Ie(B ASCII-8BIT e$B$H$J$C$F$7$^$&$N$G6hJL$,$G$-$:Lr$KN)$A$^$;$s!%e(B

e$B$J$s$Ge(B ASCII-8BIT [email protected]$HLr$KN)$?$J$$$N$+M}2r$G$-$J$$$s$G$9$,!"e(B
e$B$I$&$7$F$J$s$G$7$g$&e(B?

In article [email protected],
Martin D. [email protected] writes:

e$BF13J$G$O$"$j$^$;$s!#e(BASCII-8BIT e$B$Oe(B asciicompat e$B$G$9$,!“e(Bbinary
e$B$O$=$&$G$O$”$j$^$;$s!#e(B

e$B$=$&$$$&e(B binary e$B$J%(%s%3!<%G%#%s%0$K$D$$$F$O0JA09M$($Fe(B
[ruby-dev:32042] e$B$r=q$-$^$7$?!#e(B

binary e$B$Oe(B ASCII e$BJ8;z$H$^$C$?$/4X78$,$J$$$H$$$&[email protected]$7$$$H$Oe(B
e$B;W$&$N$G$9$,!"$=$l$C$F;H$$$d$9$$$s$G$7$g$&$+!#$"$k$$$O!"?M4Ve(B
e$B$O$=$N$h$&$KG’<1$7$F$$$k$s$G$7$g$&$+!#e(BGIF e$B%U%!%$%[email protected],e(B
3e$B%Pe(B
e$B%$%H$,e(B GIF e$B$G;O$^$k$H$$$&$h$&$Ke(B (ASCII
[email protected]$-$F$$e(B
e$B$ke(B) e$B?M4V$Oe(B ASCII
e$B$H%P%$%J%j$N6hJL$r$=$l$[$I87L)$K$O9T$C$F$$e(B
e$B$J$$$N$G$O$J$$$G$7$g$&$+!#e(B

e$B$^$?!"?M4V$NG’<1$KHf$Y$l$P>.$5$JOC$G$O$"$j$^$9$,!“8=<BE*$JLde(B
e$BBj$H$7$Fe(B Ruby e$B$NJ8;zNsA`:n$Oe(B ASCII
e$B$NJ8;z$K0MB8$7$F$$$k$H$3e(B
e$B$m$,B?!9$”$j$^$9!#e(B

e$B$?$H$($P!"@55,I=8=$K$O7+$jJV$7$rI=8=$9$ke(B ASTERISK e$B$H$$$&J8;ze(B
e$B$,I,MW$G$9!#$=$&$$$&J8;z$,B8:_$7$J$$%(%s%3!<%G%#%s%0$G$O7+$je(B
e$BJV$7$r$I$&I=8=$7$?$iNI$$$N$G$7$g$&e(B?

[email protected],I=8=$G$J$/$F$b!"e(BString#count e$B$Oe(B HYPHEN-MINUS
e$B$r;H$C$FJ8e(B
e$B;z$NHO0O$rI=8=$7$^$9$7!"e(BCIRCUMFLEX ACCENT e$B$GJd=89g$rI=8=$7$^e(B
e$B$9!#$^$?e(B REVERSE SOLIDUS e$B$G%(%9%1!<%W$rI=8=$7$^$9!#F1MM$JI=e(B
e$B8=$Oe(B String#delete e$B$de(B String#squeeze e$B$K$b8+$i$l$^$9!#e(B

binary e$B$K$Oe(B HYPHEN-MINUS, CIRCUMFLEX ACCENT, REVERSE SOLIDUS
e$B$H$$$&J8;z$OB8:_$7$J$$$H9M$($i$l$^$9$,!"e(BString#count e$B$O$I$Ne(B
e$B$h$&$KF0:n$9$Y$-$G$7$g$&e(B?

e$BB>$K$be(B String#dump e$B$K$Oe(B QUOTATION MARK
e$B$J$I$,I,MW$G$9!#e(Bsub
e$B$de(B gsub e$B$NBhe(B2e$B0z?t$K$Oe(B REVERSE SOLIDUS e$B$de(B DIGIT
ONE e$BEy$,I,MWe(B
e$B$G$9!#e(B

e$B$b$7!“e(BASCII e$B$NJ8;z$rI=8=ITG=$Je(B binary
e$B$H$$$&%(%s%3!<%G%#%s%0e(B
e$B$rF3F~$9$k$J$i!”$=$N$h$&$JLdBj$r%/%j%"$9$kI,MW$,$"$k$N$G$O$Je(B
e$B$$$G$7$g$&$+!#e(B

[email protected]@%$G$9!#e(B

Hidetoshi NAGAI wrote:

e$B$3$l$K4|BT$7$F$$$k$N$G$9$,!$F3F~$O%@%a$J$N$G$7$g$&$+!)e(B

e$B2?$r$I$&$d$C$F$I$N$/$i$$$N:n6H$,I,MW$J$N$+$re(B
e$BA4A3J,$+$C$F$O$$$J$$$N$G$9$,!%!%!%e(B(^_^;

[email protected]$H$7$F$b!$%i%$%V%i%j$GFH<+$KDI2C$9$k$N$O$G$-$k8B$jHr$1$?$$$N$G!$e(B
[email protected]$1$^$9$h$&$*4j$$$7$^$9!%e(B

e$B3HD%%i%$%V%i%j$GFH<+%(%s%3!<%G%#%s%0$NDj5A$O2DG=$G$9$,!"B?$/$N>l9g$=$&$7e(B
e$B$?I,MW$O$J$$$H;W$$$^$9!#e(B

e$B$3$NOC$Oe(B [ruby-dev:32550] [email protected]$H;W$&$N$G$9$,!“8=:_$Oe(B
e$B!Ve(BEncoding.default_external e$B$Ne(B encoding
e$B$G$”$k$H2>Dj$7$Fe(B
utf-8 e$B$X$N<+F0JQ49$r$+$1$k!W$Y$-J8;zNs$K$O:G=i$+$ie(B
default_external e$B$Ne(B
encoding e$B$,%;%C%H$5$l$F$$$k$O$:$G$9!#$D$^$j!"$=$N;[email protected]$G$^[email protected](B
ASCII-8BIT
e$B$K$J$C$F$$$k$J$i$P!"$=$l$O%P%$%J%j%G!<%[email protected]$HH=CG$9$Y$-$G$7$g$&!#e(B

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: Tanaka A. [email protected]
Subject: [ruby-dev:33019] Re: Binary String
Date: Fri, 11 Jan 2008 17:28:34 +0900
Message-ID: [email protected]

e$B8=>u!$e(Bforce_encoding(‘binary’) e$B$J$I$O<u$1IU$1$F$O$/$l$^$9$,!$e(B
encoding e$B$O7k6Ie(B ASCII-8BIT e$B$H$J$C$F$7$^$&$N$G6hJL$,$G$-$:Lr$KN)$A$^$;$s!%e(B

e$B$J$s$Ge(B ASCII-8BIT [email protected]$HLr$KN)$?$J$$$N$+M}2r$G$-$J$$$s$G$9$,!"e(B
e$B$I$&$7$F$J$s$G$7$g$&e(B?

e$BA0Ds>r7o$N5-=R$,B-$j$^$;$s$G$7$?$M!%$4$a$s$J$5$$!%e(B

e$B!VLr$KN)$?$J$$!W$H$$$&$N$O!$e(B
Ruby/Tk e$B$K$*$1$ke(B encoding e$B$N<+F0JQ49=hM}$G$Ne(B
e$BH=Dj$K:]$7$F$G$9e(B ([ruby-dev:32550])e$B!%e(B

ASCII-8BIT e$B$O$"$^$j?.Mj$G$-$ke(B encoding e$B$G$O$J$$$G$9$h$M!)e(B
encoding [email protected]$K;XDj$7$F$$$J$1$l$P4JC1$Ke(B ASCII-8BIT e$B$Ke(B
e$B$J$C$F$7$^$$$^$9!%e(B
e$B$=$N$?$a!$e(BASCII-8BIT e$B$H$5$l$F$$$kJ8;zNs$N07$$$Oe(B
Ruby 1.8 e$B$N>l9g$HJQ$o$j$,$J$$$H9M$($F$$$^$9!%e(B

Ruby/Tk [email protected]$J>l9g$Ne(B encoding e$B$re(B Ruby 1.8 e$B$J$ie(B
$KCODE e$B$G!$e(B
Ruby 1.9 e$B$J$ie(B default_external e$B$G?dDj$7!$e(B
UTF-8 e$B$KJQ49$7$?8e$Ke(B Tcl/Tk e$BB&$KEO$9$h$&$K$7$^$9!%e(B

default_external e$B$be(B ASCII-8BIT e$B$J$i!$e(B

Tcl/Tk e$B$NJQ49%k!<%A%s$KH=CG$rG$$;$^$9!%e(B

e$B$7$+$7$J$,$i!$e(BRuby e$B$He(B Tcl/Tk e$B$H$N$d$j<h$j$K$Oe(B
e$B2hA|%G!<%?$J$I$Ne(B binary string e$B$bB8:_$7$^$9!%e(B
e$BEvA3!$$=$&$7$?J8;zNs$K$OJQ49$r$+$1$F$O$$$1$^$;$s!%e(B

e$B8=>u$Ne(B 1.9 e$B$G$Oe(B ASCII-8BIT
e$B$,9-$/MQ$$$i$l$F$7$^$&$?$a!$e(B
e$B!V?dDj$K$h$k<+F0JQ49$r$9$Y$-J8;zNs!W$J$N$+e(B
e$B!VJQ49$7$F$O$J$i$J$$J8;zNs!W$J$N$+$re(B
encoding e$B>pJs$r;H$C$FH=CG$9$k$3$H$,$G$-$^$;$s!%e(B

e$B8F$S=P$5$l$k%a%=%C%IB&$GH=CG$7$m$H$$$&$N$Oe(B

Ruby/Tk e$B$N%i%$%V%i%j$G$N5-=R$NI,[email protected]$,e(B

e$BGzH/E*$KA}Bg$9$k62$l$,Bg$-$$$?$a!$$44*J[$/[email protected]$5$$!%e(B

encoding e$B>pJs$GH=CG$G$-$J$1$l$P!$8=:_$Ne(B Ruby 1.8
e$B$N>l9g$N$h$&$K!$e(B
e$BFH<+$Ke(B binary e$B$+H]$+$N>pJs$rIUM?$7$F$d$i$M$P$J$j$^$;$s!%e(B
Ruby 1.9 e$B$G$O$;$C$+$/J8;zNs$,e(B encoding
e$B>pJs$r;}$D$h$&$K$J$C$?$N$K!$e(B
e$B$=$l$r3hMQ$G$-$:$KFH<+$K0[$J$k<jCJ$G>pJsIUM?$;[email protected]$J$$$J$I$H$$$&e(B
e$BL5MM$J$3$H$K$J$C$F$7$^$$$^$9!%e(B
e$BM?$($i$l$?J8;zNs$,FH<+7A<0$GIUM?$7$?>pJs$r;}$D$+$I$&$+$re(B
e$BH=CG$9$k$H$$$&M>7W$J<j4V$bI,MW$G$9!%e(B

e$B!Ve(Bbinary e$B$G$"[email protected]$K;X<($G$-$ke(B encoding
e$B$,$"$j$5$($9$l$Pe(B
e$BM>7W$J>r7oH=CG$bI,MW$H$;$:$9$C$-$j$H4JC1$K2r7h$G$-$kLdBj$G$9!%e(B
ASCII-8BIT e$B$Ne(B replica e$B$H$$$&$3$H$K$7$F$$1$P!$e(B
e$B0JA0$K$
$C$7$c$i$l$?e(B binary string
e$B$N%F%-%9%H=hM}$H$$$&[email protected]$G$be(B
e$BLdBj$O$J$$$H;W$$$^$9!%e(B

e$B$=$l$G$b%@%a$G$7$g$&$+!)e(B

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

From: “NARUSE, Yui” [email protected]
Subject: [ruby-dev:33020] Re: Binary String
Date: Fri, 11 Jan 2008 18:26:56 +0900
Message-ID: [email protected]

e$B$3$NOC$Oe(B [ruby-dev:32550] [email protected]$H;W$&$N$G$9$,!“8=:_$Oe(B
e$B!Ve(BEncoding.default_external e$B$Ne(B encoding e$B$G$”$k$H2>Dj$7$Fe(B
utf-8 e$B$X$N<+F0JQ49$r$+$1$k!W$Y$-J8;zNs$K$O:G=i$+$ie(B default_external e$B$Ne(B
encoding e$B$,%;%C%H$5$l$F$$$k$O$:$G$9!#$D$^$j!"$=$N;[email protected]$G$^[email protected](B ASCII-8BIT
e$B$K$J$C$F$$$k$J$i$P!"$=$l$O%P%$%J%j%G!<%[email protected]$HH=CG$9$Y$-$G$7$g$&!#e(B

e$BHsBP1~e(B locale [email protected]$C$?$j$7$?>l9g$K$Oe(B default_external e$B$Oe(B
ASCII-8BIT e$B$Ke(B
e$B$J$C$F$7$^$&$N$G$O$J$+$C$?$G$7$g$&$+!)e(B

[email protected]$N%a!<%k$G$O!Ve(Bdefault_external e$B$G!W$H$O=q$-$^$7$?$,!$e(B
Ruby e$BB&$,[email protected]$J>l9g$K$O!$e(BTcl/Tk e$BB&$Ne(B encoding_system
e$B$re(B
e$B;H$&$h$&$K$7$F$$$^$9!%e(B

e$B$^[email protected](B Ruby e$BB&$He(B Tcl/Tk e$BB&$Ne(B encoding

e$BL>$NBP1~$O$G$-$F$$$^$;$s$,!%e(B

e$B$=$&$7$?%1!<%9$Ge(B Ruby e$B>e$G$9$Y$Fe(B ASCII-8BIT
e$B$K$5$l$F$7$^$&$He(B
e$B$I$&$7$h$&$b$"$j$^$;$s!%e(B

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