Changeset 2253

Show
Ignore:
Timestamp:
05/10/07 10:22:33
Author:
miyagawa
Message:

assume default as latin-1 per RFC

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Web-Scraper/trunk/lib/Web/Scraper.pm

    r2252 r2253  
    5050        my $res = $ua->get($stuff); 
    5151        if ($res->is_success) { 
    52             $html = $res->encoding ? $res->decoded_content : Encode::decode_utf8($res->content); 
     52            $html = $res->encoding ? $res->decoded_content : Encode::decode("latin-1", $res->content); 
    5353        } else { 
    5454            croak "GET $stuff failed: ", $res->status_line;