First, the CGI code is not portable as you do not specify the encoding of the source code.
How is it not portable?
The script will be portable no matter what encoding he specifies as long as the encoding in the following two lines match:
binmode STDOUT, ':encoding(iso-8859-1)'; ... print "Content-type: text/html; charset=iso-8859-1\n\n";
The only question is whether the browser can encode using iso-8859-1 or not. I'd be very surprise to meet one that couldn't.
In reply to Re^4: WWW::Mechanize always use utf8
by ikegami
in thread WWW::Mechanize always use utf8
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |