Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: LWP::UserAgent; unable to copy extended ASCII

by Discipulus (Canon)
on Jun 06, 2022 at 09:49 UTC ( [id://11144446]=note: print w/replies, xml ) Need Help??


in reply to LWP::UserAgent; unable to copy extended ASCII

Hello wmfs,

your code lacks of the unavoidable use strict; use warnings; and the name of variables seems to change during the script..

..but anyway LWP::UserAgent retrieves correctly the é as you can see in this short oneliner output(be aware of windows double quotes):

perl -MLWP::UserAgent -e "print LWP::UserAgent->new->get('http://perlm +onks.org/index.pl?node_id=11144443')->decoded_content" | grep cory It is the <em>coryphées</em> should fear him, It is the <em>coryph&#65533;es</em> should fear him

L*

PS I have semplified the above code, same results btw

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144446]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found