in reply to Re: LWP charset problem
in thread LWP charset problem
to get what I want, now the question is how to tell LWP to return a response object using this sub?sub decoded_content { my $self = shift; my $c; eval {$c = $self->SUPER::decoded_content(raise_error => 1)} && ret +urn $c; $c = $self->SUPER::decoded_content(charset => 'none'); $c = decode('utf8', $c, Encode::FB_PERLQQ()); $c =~ s/\\x\d{,2}//g; $c; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: LWP charset problem
by zwon (Abbot) on Jan 05, 2009 at 18:58 UTC | |
|
Re^3: LWP charset problem
by zentara (Cardinal) on Jan 05, 2009 at 18:20 UTC |