From: The Higgs bozo Date: 2009-05-27T07:49:33+09:00 Subject: Re: Mechanize and charset issues John Schmitz wrote: > > page = agent.click(page.link_with(:text => '[Add Content]')) > uploadForm = page.forms[6] > uploadForm['format'] = formatstring > page = agent.submit uploadForm > #pp page > > Gives me the error: > > /var/lib/gems/1.8/gems/mechanize-0.9.2/lib/www/mechanize/util.rb:40:in > `iconv': "\342\202\254\305\223a condition"... (Iconv::IllegalSequence) > from Running "ruby -KU ..." will probably fix it (at least it has worked for me whenever I had errors from \nnn inside strings). -- Posted via http://www.ruby-forum.com/.