Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://767283]
[LanX]: name works
erix feels silly for having actually tested that contiguous values make no difference in CLUSTERing a table (At least, in postges)
[LanX]: Perl Monks Approved HTML tags
[LanX]: erix and his postguess ...
[erix]: (Grrres...)
[dabella12]: I have a problem install tK on CeontOs using perl 5.24

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-06-24 13:34 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (557 votes). Check out past polls.