OpenURI charset の即定値の問題

e$BEDCf$5$s!"$3$s$K$A$O!#e(B

e$BEDCf$5$s$,:n$C$?$H$F$bJXMx$Je(B open-uri e$B$r;H$*$&$H$7$?$H$3$m!e(B
e$B5$$K$J$C$?$3$H$,0l$D$$j$^$7$?!#e(Bcharset e$B$H$$$&e(B method
e$B$Ge(B
e$B<!$NDL$j$K=q$$$F$"$j$^$9e(B:

If charset parameter and block is not given, nil is returned except text
type in HTTP. In that case, iso-8859-1 is returned as defined by
RFC2616 3.7.1.

e$BLdBj$O!"@>2$$J$I0J30$N$H$3$me(B (e$BF|K$b4^$ae(B)
e$B$G$O$3$l$OA4A3DLMQ$7$J$$$G$9!#e(B
e$B$7$+$b!"%?%$%W$,e(B text/xml e$B$de(B text/hoge+xml
e$B$J$I$N>l9g$K$OB(DjCM$,e(B US-ASCII
e$B$K$J$C$F$$$^$9!#e(B(RFC http://www.ietf.org/rfc/rfc3023.txt
e$B;2>He(B)
e$B$=$&$9$k$H<B:]$K;H$$$?$$$H;W$C$?$iFbItE*$J%a%>%I$K<j$r=P$9$+!"<+J,$G$J$K$+e(B
e$B$r:n$k$+$7$+$"$j$^$;$s!#@'Hse(B open-uri
e$B$NB(DjCM$rJQ99$7$F!&30$7$Fe(B
[email protected]$-$?$$$G$9$,!"$$$+$,$G$9$+!#e(B

e$B%Q%C%[email protected]=q$$$F$J$$$G$9$,!"$=$l$GLdBj$,2r7h$7$?$i4n$s$G=q$$$F$_$^$9!#e(B

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

P.S.:
[email protected]$[$Ie(B HTTP e$B$N%a!<%j%s%0%j%9%H$K$bJs9p$7$^$7$?!#e(B
http://lists.w3.org/Archives/Public/ietf-http-wg/2007OctDec/0018.html

P.P.S.:
e$B!V$3$N;EMM=q$N$3$NItJ,$O?.$8$F$$$$$G$9$,!"[email protected]$a$G$9!We(B
e$B$H$$$C$F$/$k$d$D$N$O$J$+$J$+?.$8Fq$$$+$H;W$$$^$9$,!";DG0$J$,$i!"e(B
e$B;EMM=q$b?M4V$,:[email protected]$1$G$9!#e(B

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

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

e$BLdBj$O!"@>2$$J$I0J30$N$H$3$me(B (e$BF|K$b4^$ae(B) e$B$G$O$3$l$OA4A3DLMQ$7$J$$$G$9!#e(B
e$B$7$+$b!"%?%$%W$,e(B text/xml e$B$de(B text/hoge+xml e$B$J$I$N>l9g$K$OB(DjCM$,e(B US-ASCII
e$B$K$J$C$F$$$^$9!#e(B(RFC http://www.ietf.org/rfc/rfc3023.txt e$B;2>He(B)
e$B$=$&$9$k$H<B:]$K;H$$$?$$$H;W$C$?$iFbItE*$J%a%>%I$K<j$r=P$9$+!"<+J,$G$J$K$+e(B
e$B$r:n$k$+$7$+$"$j$^$;$s!#@'Hse(B open-uri e$B$NB(DjCM$rJQ99$7$F!&30$7$Fe(B
[email protected]$-$?$$$G$9$,!"$$$+$,$G$9$+!#e(B

charset e$B%a%=%C%I$K%V%m%C%/$rM?$($l$P!e(Bcharset e$B%Q%i%a!<%?$,B8e(B
e$B:_$7$?$+$I$&$+$rH=JL$9$k$3$H$,$G$-$^$9$,!$=$l$G$OB-$j$J$$$se(B
e$B$G$7$g$&$+e(B?

e$B$?$H$($P!"e(Biso-8859-1 e$B$,%$%d$Ge(B nil e$B$rJV$7$F$[$7$$$J$ie(B
uri.read.charset { nil } e$B$H$9$k$3$H$,$G$-$^$9!#e(B

e$B%Q%C%[email protected]=q$$$F$J$$$G$9$,!"$=$l$GLdBj$,2r7h$7$?$i4n$s$G=q$$$F$_$^$9!#e(B

e$B$3$NLdBj$O!"%5!<%PB&$Ge(B charset e$B%Q%i%a!<%?$rIU$1$k$3$H$,K<Ae(B
e$BE*$J2r7h$G$"$j!"%/%i%$%"%s%HB&[email protected]$7$/2r7h$G$-$k$b$N$G$OL5$$!"e(B
e$B$H9M$($F$$$^$9!#e(B

e$B%Q%C%A$r=q$$$F2r7h$G$-$k$H$9$k$H!"$$$C$?$$$J$K$r$d$k$s$G$9$+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