in reply to Re^2: win32 txt (with a £) -> decode -> encode_entities -> L with stroke
in thread win32 txt (with a £) -> decode -> encode_entities -> L with stroke

According to Wikipedia.

If this information is accurate, Encode is producing the proper output and wfsp's expectations are wrong.

use Encode qw( decode ); for (qw( iso-8859-1 cp1252 iso-8859-2 cp1250 )) { printf( "%-11s U+%04X\n", "$_:", ord( decode($_, "\xA3") ) ); }
iso-8859-1: U+00A3 cp1252: U+00A3 iso-8859-2: U+0141 cp1250: U+0141

Update: Added to node.

Replies are listed 'Best First'.
Re^4: win32 txt (with a £) -> decode -> encode_entities -> L with stroke
by wfsp (Abbot) on Jan 15, 2009 at 18:35 UTC
    ...wfsp's expectations are wrong.
    Yup.

    Thanks for straightening out my muddle.