Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: libwww-perl, POE and Unicode

by polettix (Vicar)
on Jun 01, 2009 at 15:31 UTC ( [id://767283]=note: print w/replies, xml ) Need Help??


in reply to Re^3: libwww-perl, POE and Unicode
in thread libwww-perl, POE and Unicode

Hi there,

before posting a bug report, I'd like a comment about why utf8::downgrade() had to be used instead of Encode::encode_utf8().

The former modifies the input in-place (argh!) and fails if it isn't either Latin-1 or EBCDIC. This means that the behaviour changes depending on the platform, and your odds are gone if your text can't be converted into one of those two encodings (which means a big part of the world).

The latter would leave its input unchanged, would behave the same whatever the platform (I hope) and would thus be truly "octet oriented".

Do you think a bug report/patch would be well-placed in this case, or am I overlooking something?

,

perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Io ho capito... ma tu che hai detto?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-23 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found