Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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 live 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2014-12-26 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls