MechanizeãEUCã®ãã¼ã¸(mixiã¨ã)ããã¾ã解æãã¦ãããªã件ã§ããã£ã¨è©¦è¡é¯èª¤ãã¦ãããã©ãæãç«ã£ã¦ãã®ãããã®ã½ã¼ã¹ã追ã£ã¦ãªãã¨ã解決ãããhookãç¨æãã¦ãããã ãã©ããã®hookã«ã¡ã½ããã追å ããæ¹æ³ãããããªãã®ã§ãããããæ¼ãè¾¼ããããã£ã½ãååã®hookãªã®ã§ãã³ã¼ãå¤æãããã¨ããããããªãã ããã¨æãã class WWW::Mechanize def set_hook @post_connect_hook.hooks << Proc.new do |params| params[:response_body] = NKF.nkf("-wm0",params[:response_body]) params[:response]["Content-Type"]="text/html; charset=utf-8" end end end agent =
{{#tags}}- {{label}}
{{/tags}}