Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^4: libwww-perl, POE and Unicode

by polettix (Vicar)
on Jun 01, 2009 at 15:31 UTC ( #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?

Comment on Re^4: libwww-perl, POE and Unicode
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2015-10-06 21:36 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (161 votes), past polls