You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. $mech->get('http://kakaku.com');
2. $mech->save_content('index.html');
3. nkf -g index.html # => utf-8
What is the expected output? What do you see instead?
"shift_jis" is expected, not "utf-8".
The page above is written in shift_jis.
What version of the product are you using? On what operating system?
1.70 on CentOS 5.x
Please provide any additional information below.
I guess something like below is needed in save_content() :
my $enc = $self->res->encoding;
open( $fh, ">:encoding($en)", $finename );
Thanks.
Yoshitomo KANEDA
[email protected] reported on Oct 14, 2011
Details
Imported from Google Code issue 221 via archive
The text was updated successfully, but these errors were encountered: