WWW-Mechanize - HowTo: UTF8 forms

Posted on Mon Jul 16 14:56:02 2007 by traut
HowTo: UTF8 forms
Hi all, I did not manage yet how to submit data to a page which asks for UTF-8. I did not yet apply use open qw(:utf8); which I found as a maybe related answer here, but I used both use utf8 and use encoding "utf8" (in combinations with encoding "latin1" and saved file in latin1 or utf8). The site asks for <html xmlns="http://www.w3.org/1999/xhtml" > - no charset defined, thus I expect it should be UTF8. Is there an option which encoding to use for submission? Is this always detected by their header info (even if wrong?)? Is their header not checked at all? Are there any examples how to apply UTF8 properly? Thanks, Martin
Write a response