On Tue, 16 Sep 2008 17:33:08 +0900
In article [email protected]
[[ruby-dev:36321] Re: [Feature #542] cgi.rb : CGI::unescape return
encoding]
Kazuhiro NISHIYAMA [email protected] wrote:
e$B$“$H!”%(%s%3!<%G%#%s%0$,0c$&J8;zNs$rAw$j$D$1$i$l$?>l9g$Ke(B
e$B$I$&$9$k$+$G$9$,!"e(B
- e$BJ|CV!J$*$=$i$/$I$3$+$GNc30$r5/$3$7$F;_$^$k!Ke(B
- e$B8!>Z$7$F$*$+$7$+$C$?$H$-$Oe(Bkeye$B$4$HL5;k$9$ke(B
- e$B8!>Z$7$F$*$+$7$+$C$?$H$-$Oe(Bkeye$B$O$"$k$1$ICf?H$re(Bnile$B$K$9$ke(B
- e$B8!>Z$7$F$*$+$7$+$C$?$H$-$Oe(Bvaluee$B$re(BASCII-8BITe$B$K$7$F$7$^$&e(B
4e$B$,?F@Z$+$J$H;W$&$N$G$9$,!"$40U8+$h$m$7$/$*4j$$$7$^$9!#e(B
e$B%P%$%J%j%U%!%$%k$N%"%C%W%m!<%I$r$9$k$H$-$Ke(B2e$B$de(B3e$B$@$H:$$j$=$&$G$9!#e(B
multipart/form-data e$B$G!“$+$De(B Content-Disposition filename
e$B$r;}$C$F$$$l$Pe(B
ASCII-8BIT e$B$G!”$=$&$G$J$1$l$P8!>Z!!$H$+!#e(B
e$B@>;3OB9-$G$9!#e(B
At Sun, 14 Sep 2008 00:27:27 +0900,
Fujioka wrote:
e$B$"$H!"%(%s%3!<%G%#%s%0$,0c$&J8;zNs$rAw$j$D$1$i$l$?>l9g$Ke(B
e$B$I$&$9$k$+$G$9$,!"e(B
- e$BJ|CV!J$*$=$i$/$I$3$+$GNc30$r5/$3$7$F;_$^$k!Ke(B
- e$B8!>Z$7$F$*$+$7$+$C$?$H$-$Oe(Bkeye$B$4$HL5;k$9$ke(B
- e$B8!>Z$7$F$*$+$7$+$C$?$H$-$Oe(Bkeye$B$O$"$k$1$ICf?H$re(Bnile$B$K$9$ke(B
- e$B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8BIT e$B$,$h$$$G$9$7!"e(B
e$B%F%-%9%H%U%!%$%k$J$i%(%s%3!<%G%#%s%08GDj$+$b$7$l$J$$$o$1$G!"e(B
e$B$3$l$bJLES<u$1<h$je(B encoding e$B$r;XDj$5$;$k$Y$-$G$7$g$&!#e(B
e$B@.@%$G$9!#e(B
Fujioka wrote:
e$B$"$H!"%(%s%3!<%G%#%s%0$,0c$&J8;zNs$rAw$j$D$1$i$l$?>l9g$Ke(B
e$B$I$&$9$k$+$G$9$,!"e(B
- e$BJ|CV!J$*$=$i$/$I$3$+$GNc30$r5/$3$7$F;_$^$k!Ke(B
- e$B8!>Z$7$F$*$+$7$+$C$?$H$-$Oe(Bkeye$B$4$HL5;k$9$ke(B
- e$B8!>Z$7$F$*$+$7$+$C$?$H$-$Oe(Bkeye$B$O$"$k$1$ICf?H$re(Bnile$B$K$9$ke(B
- e$B8!>Z$7$F$*$+$7$+$C$?$H$-$Oe(Bvaluee$B$re(BASCII-8BITe$B$K$7$F$7$^$&e(B
4e$B$,?F@Z$+$J$H;W$&$N$G$9$,!"$40U8+$h$m$7$/$*4j$$$7$^$9!#e(B
- e$B$+$^$o$:;XDj$5$l$?e(B encoding e$B$r$D$1$ke(B
e$B$8$c$J$$$G$9$+$M!#e(B
String#valid_encoding?
e$B$GD4$Y$k$H$+!“8e$GBP=h$9$kJ}K!$O$”$k$N$G$9$+$i!#e(B
e$BF#2,$G$9!#e(B
- e$B$+$^$o$:;XDj$5$l$?e(B encoding e$B$r$D$1$ke(B
e$B$8$c$J$$$G$9$+$M!#e(B
String#valid_encoding? e$B$GD4$Y$k$H$+!“8e$GBP=h$9$kJ}K!$O$”$k$N$G$9$+$i!#e(B
bad knowhow e$B$K$J$j$=$&$GI]$$$G$9!#e(B
bad knowhowe$B$K$J$k$0$i$$$@$C$?$i<BAu$7$?$$$G$9$M!#e(B
cgi = CGI.new(‘UTF-8’)
unless cgi.param.join.valid_encoding?
print cgi.header(‘status’ => ‘400 Bad Request’)
print ‘Bad Request’
exit
end
e$BEy$N%3!<%I$rKhEY=q$/$+26%i%$%V%i%j$K$9$kI,MW$,$"$k$o$1$G!#e(B
e$B$3$l$@$He(BEUC-JPe$B$He(BUTF-8e$B$rAw$j$D$1$i$l$?$H$-$Ke(Bjoine$B$N;~E@$GNc30$J$h$&$J!#e(B
e$B$H$$$&OC$O$5$F$$-!"e(B
newe$B$9$k$H$-$N%%W%7%g%s$G4|BT$9$k5sF0$r@Z$jBX$($i$l$k$He(B
e$B;H$$$d$9$$$G$7$g$&$+$M!)e(B
cgi=CGI.new(:encoding=>“UTF-8”,:element_encoding_check=>true)
e$B$_$?$$$K!#e(B
On Wed, 17 Sep 2008 11:49:12 +0900
In article [email protected]
[[ruby-dev:36342] Re: [Feature #542] cgi.rb : CGI::unescape return
encoding]
Fujioka [email protected] wrote:
cgi = CGI.new(‘UTF-8’)
unless cgi.param.join.valid_encoding?
print cgi.header(‘status’ => ‘400 Bad Request’)
print ‘Bad Request’
exit
end
e$BEy$N%3!<%I$rKhEY=q$/$+26%i%$%V%i%j$K$9$kI,MW$,$"$k$o$1$G!#e(B
e$B$3$l$@$He(BEUC-JPe$B$He(BUTF-8e$B$rAw$j$D$1$i$l$?$H$-$Ke(Bjoine$B$N;~E@$GNc30$J$h$&$J!#e(B
force_encoding e$B$5$l$F$$$k!"$H$$$&A0Ds$J$N$G!"Nc30$O$J$$$O$:!#e(B
newe$B$9$k$H$-$N%*%W%7%g%s$G4|BT$9$k5sF0$r@Z$jBX$($i$l$k$He(B
e$B;H$$$d$9$$$G$7$g$&$+$M!)e(B
cgi=CGI.new(:encoding=>“UTF-8”,:element_encoding_check=>true)
e$B%G%U%)%k%H%A%'%C%/$r4uK>!#e(B
e$B:.:_$7$?e(Bore$BIT@5$J%(%s%3!<%G%#%s%0$r<u$1IU$1$k$3$H$NJ}$,Nc30E*$@$H;W$$$^$9!#e(B
e$B%"%C%W%m!<%I$5$l$?%P%$%J%j$O$b$H$b$H=|30$JLu$G!#e(B
On Tue, 16 Sep 2008 21:37:12 +0900
In article [email protected]
[[ruby-dev:36332] Re: [Feature #542] cgi.rb : CGI::unescape return
encoding]
“NARUSE, Yui” [email protected] wrote:
- e$B$+$^$o$:;XDj$5$l$?e(B encoding e$B$r$D$1$ke(B
e$B$8$c$J$$$G$9$+$M!#e(B
String#valid_encoding? e$B$GD4$Y$k$H$+!“8e$GBP=h$9$kJ}K!$O$”$k$N$G$9$+$i!#e(B
bad knowhow e$B$K$J$j$=$&$GI]$$$G$9!#e(B
cgi = CGI.new(‘UTF-8’)
unless cgi.param.join.valid_encoding?
print cgi.header(‘status’ => ‘400 Bad Request’)
print ‘Bad Request’
exit
end
e$BEy$N%3!<%I$rKhEY=q$/$+26%i%$%V%i%j$K$9$kI,MW$,$"$k$o$1$G!#e(B
e$BF#2,$G$9!#e(B
print cgi.header(‘status’ => ‘400 Bad Request’)
newe$B$9$k$H$-$N%*%W%7%g%s$G4|BT$9$k5sF0$r@Z$jBX$($i$l$k$He(B
e$B;H$$$d$9$$$G$7$g$&$+$M!)e(B
cgi=CGI.new(:encoding=>“UTF-8”,:element_encoding_check=>true)
e$B%G%U%)%k%H%A%’%C%/$r4uK>!#e(B
e$B:.:_$7$?e(Bore$BIT@5$J%(%s%3!<%G%#%s%0$r<u$1IU$1$k$3$H$NJ}$,Nc30E*$@$H;W$$$^$9!#e(B
e$B%"%C%W%m!<%I$5$l$?%P%$%J%j$O$b$H$b$H=|30$JLu$G!#e(B
e$B;d$H$7$F$O%A%’%C%/$rF~$l$?J}$,$$$$$H;W$C$F$$$^$9!#e(B
cgi=CGI.new(:encoding=>“UTF-8”,:element_encoding_check=>false)
e$B$3$s$J46$8$G$G$-$k$H3Z$+$J$H!#e(B
e$B%U%!%$%k$K4X$7$F$O$9$Y$Fe(BASCII-8BITe$B$,$$$$$H;W$C$F$$$^$9!#e(B
e$BF#2,$G$9!#e(B
e$B;d$H$7$F$O%A%’%C%/$rF~$l$?J}$,$$$$$H;W$C$F$$$^$9!#e(B
cgi=CGI.new(:encoding=>“UTF-8”,:element_encoding_check=>false)
e$B$3$s$J46$8$G$G$-$k$H3Z$+$J$H!#e(B
e$B%U%!%$%k$K4X$7$F$O$9$Y$Fe(BASCII-8BITe$B$,$$$$$H;W$C$F$$$^$9!#e(B
- CGI.newe$B$N%*%W%7%g%s$Ge(BHashe$B$b<h$l$k$h$&$K$9$ke(B
e$B!J8=>u$Oe(B"html3"e$B$J$I$Ne(BStringe$B$N$_!Ke(B
-
CGIe$B$Ke(B@@encodinge$B$H$$$&%/%i%9JQ?t$rMQ0U$7!"e(Bdefaulte$BCM$Oe(B"UTF-8"e$B$H$9$ke(B
- CGI::encodinge$B$He(BCGI::encoding=e$B$H$$$&%a%=%C%I$rMQ0U$7!"e(B
@@encodinge$B$N%;%C%?!<$H%2%C%?!<$K$9$ke(B
- CGI.newe$B$5$l$?$H$-$K%*%W%7%g%s$Ge(B
CGI.new(:encoding=>“EUC-JP”)e$B$J$I$H;XDj$5$l$J$$>l9g$Oe(B
@@encodinge$B$NCM$re(B@encodinge$B$KBeF~$9$ke(B
-
e$B3F!9$N%(%l%a%s%H$NCM$Oe(B@encodinge$B$NCM$Ge(Bforce_encodinge$B$7!"e(B
valid_encoding?e$B$9$k!#$?$@$7!"e(Bfilee$B$@$1$Oe(BASCII-8BITe$B$H$9$k!#e(B
*
e$B%*%W%7%g%s$N$H$-$Ke(B:element_encoding_check=>falsee$B$,M?$($i$l$?$H$-$Oe(B
e$B%(%s%3!<%G%#%s%0%A%’%C%/$7$J$$!#e(B
- encodinge$B$N%A%’%C%/$r$7$F@5$7$/$J$$>l9g$Oe(BASCII-8BITe$B$Ke(B
force_encodinge$B$7$F$7$^$&e(B
e$B0J>e$N$h$&$J;EMM$G$O$$$+$,$G$7$g$&$+!)e(B
e$B%5%s%W%k%Y!<%9$G9T$/$H!"e(B
require ‘cgi’
@cgi=CGI.new(“html3”)
e$B$H$d$C$?>l9g$O<u$1<h$C$?CM$Oe(BUTF-8e$B$H$_$J$7!"e(Bencodinge$B$N%A%’%C%/$rF~$l$k!#e(B
e$B%?%0%a!<%+!<$Oe(Bhtml3e$B$H$9$k!#e(B
EUC-JPe$B$K$9$k>l9g$Oe(B
require ‘cgi’
CGI::encoding=“EUC-JP”
@cgi=CGI.new(“html3”)
e$B$b$7$/$Oe(B
require ‘cgi’
@cgi=CGI.new(:tag_maker=>“html3”,:encoding=>“EUC-JP”)
e$B$H$9$k!#%(%s%3!<%G%#%s%0$N%A%’%C%/$r$7$J$$>l9g$Oe(B
require ‘cgi’
@cgi=CGI.new(:tag_maker=>“html3”,:encoding=>“EUC-JP”,:element_encoding_check=>false)
e$B$H$$$C$?$h$&$K%$%s%9%?%s%9$X%*%W%7%g%s$GEO$9!#e(B
e$B0J>e$N$h$&$J;H$$>!<j$K$J$j$^$9!#e(B
e$B@>;3OB9-$G$9!#e(B
At Sun, 21 Sep 2008 15:17:28 +0900,
Fujioka wrote:
- e$B3F!9$N%(%l%a%s%H$NCM$Oe(B@encodinge$B$NCM$Ge(Bforce_encodinge$B$7!"e(B
valid_encoding?e$B$9$k!#$?$@$7!"e(Bfilee$B$@$1$Oe(BASCII-8BITe$B$H$9$k!#e(B
e$B%U%!%$%k$+$I$&$+$O$I$&$d$C$FH=CG$9$k$N$G$7$g$&$+e(B?
e$BF#2,$G$9!#e(B
At Sun, 21 Sep 2008 15:17:28 +0900,
Fujioka wrote:
- e$B3F!9$N%(%l%a%s%H$NCM$Oe(B@encodinge$B$NCM$Ge(Bforce_encodinge$B$7!"e(B
valid_encoding?e$B$9$k!#$?$@$7!"e(Bfilee$B$@$1$Oe(BASCII-8BITe$B$H$9$k!#e(B
e$B%U%!%$%k$+$I$&$+$O$I$&$d$C$FH=CG$9$k$N$G$7$g$&$+e(B?
finenamee$B$,$"$C$?$ie(BASCII-8BITe$B8GDj$K$9$k$N$,$$$$$+$J$H;W$C$F$$$^$9!#e(B
e$B%U%!%$%k$bFCJL07$$$7$J$$J}$,$$$$$H;W$$$^$9$+!)e(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$$$N$G$7$g$&$+e(B?
On Sun, 21 Sep 2008 15:17:28 +0900
In article [email protected]
[[ruby-dev:36422] Re: [Feature #542] cgi.rb : CGI::unescape return
encoding]
Fujioka [email protected] wrote:
- encodinge$B$N%A%'%C%/$r$7$F@5$7$/$J$$>l9g$Oe(BASCII-8BITe$B$Ke(B
force_encodinge$B$7$F$7$^$&e(B
e$BNc30$r5/$3$9$+!"2?$i$+$N7A$G!VIT@5%(%s%3!<%G%#%s%0$r8!=P$7$?!W$H$$$&$3$He(B
e$B$r8!=P$G$-$kJ}K!$,M_$7$$$G$9!#e(B
e$BIT@5%(%s%3!<%G%#%s%0$r8!=P$7$?$ie(B 400
e$BEy$N%9%F!<%?%9$GB(=*N;!#e(B
On Mon, 22 Sep 2008 01:11:44 +0900
In article [email protected]
[[ruby-dev:36430] Re: [Feature #542] cgi.rb : CGI::unescape return
encoding]
Fujioka [email protected] wrote:
e$BEj9F$7$F$+$i;d$b$=$N$[$&$,$$$$$J$H;W$C$F$$$^$7$?!#e(B
Content-Typee$B$r8+$k$h$&$K:n$C$F$_$^$9!#e(B
e$BDL>o$N%U%#!<%k%I$G$Oe(BContent-Typee$B$OEO$5$l$^$;$s$,!“%U%!%$%k$N>l9g$Oe(B
Content-Type:text/plain e$B$J$s$F$3$H$b$”$jF@$^$9!#e(B
Content-Typee$B$NM-L5$O?.Mj@-$,$J$$$H;W$$$^$9!#e(B
e$BF#2,$G$9!#e(B
e$BEj9F$7$F$+$i;d$b$=$N$[$&$,$$$$$J$H;W$C$F$$$^$7$?!#e(B
Content-Typee$B$r8+$k$h$&$K:n$C$F$_$^$9!#e(B
e$BDL>o$N%U%#!<%k%I$G$Oe(BContent-Typee$B$OEO$5$l$^$;$s$,!"%U%!%$%k$N>l9g$Oe(B
Content-Type:text/plain e$B$J$s$F$3$H$b$"$jF@$^$9!#e(B
Content-Typee$B$NM-L5$O?.Mj@-$,$J$$$H;W$$$^$9!#e(B
Content-Typee$B$,$"$l$P%U%!%$%k$H$_$J$9$D$b$j$G$7$?!#e(B
- encodinge$B$N%A%’%C%/$r$7$F@5$7$/$J$$>l9g$Oe(BASCII-8BITe$B$Ke(B
force_encodinge$B$7$F$7$^$&e(B
e$BNc30$r5/$3$9$+!"2?$i$+$N7A$G!VIT@5%(%s%3!<%G%#%s%0$r8!=P$7$?!W$H$$$&$3$He(B
e$B$r8!=P$G$-$kJ}K!$,M_$7$$$G$9!#e(B
e$BIT@5%(%s%3!<%G%#%s%0$r8!=P$7$?$ie(B 400 e$BEy$N%9%F!<%?%9$GB(=*N;!#e(B
e$BB(=*N;$9$k$N$O$=$N$h$&$K%3!<%G%#%s%0$7$F$b$i$&$H$7$F!“e(B
e$B2?$i$+$N7A$NItJ,$N4uK>$O$”$j$^$9$+!)e(B
e$BNc$($Pe(B@encoding_errorse$B$Ne(Barraye$B$r:n$C$F9`L\L>$r%W%C%7%e$9$k$H$+e(B
On Mon, 22 Sep 2008 11:22:44 +0900
In article [email protected]
[[ruby-dev:36436] Re: [Feature #542] cgi.rb : CGI::unescape return
encoding]
Fujioka [email protected] wrote:
e$BEj9F$7$F$+$i;d$b$=$N$[$&$,$$$$$J$H;W$C$F$$$^$7$?!#e(B
Content-Typee$B$r8+$k$h$&$K:n$C$F$_$^$9!#e(B
e$BDL>o$N%U%#!<%k%I$G$Oe(BContent-Typee$B$OEO$5$l$^$;$s$,!“%U%!%$%k$N>l9g$Oe(B
Content-Type:text/plain e$B$J$s$F$3$H$b$”$jF@$^$9!#e(B
Content-Typee$B$NM-L5$O?.Mj@-$,$J$$$H;W$$$^$9!#e(B
Content-Typee$B$,$"$l$P%U%!%$%k$H$_$J$9$D$b$j$G$7$?!#e(B
Content-Type e$B$NM-L5$G%U%!%$%k$+H]$+$O8!=P$G$-$J$+$C$?$h$&$J!#e(B
e$BNc$($Pe(B@encoding_errorse$B$Ne(Barraye$B$r:n$C$F9`L\L>$r%W%C%7%e$9$k$H$+e(B
e$B8D?ME*$K$O!"$I$N%U%#!<%k%I$,IT@5$J$N$+$H$$$&$3$H$K6=L#$O$J$$$N$G!"e(B
true/false e$B$,JV$kDxEY$G9=$$$^$;$s!#B>$N?M$N0U8+$bJ9$-$?$$$G$9!#e(B
e$BH4$17j$rKI$0$H$$$&0UL#$G$ONc30$NJ}$,$$$$$N$+$J$"!#e(B