[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] HTML Entities decoding



Matt,

Try this one-liner and you'll see:

    print chr 151;

151 on MacOS is an accented o.  Anything above 127 is unpredictable,
and HTML::Entities makes a half-hearted attempt with:

    s/(&\#(\d+);?)/$2 < 256 ? chr($2) : $1/eg;

Do you want to patch HTML::Entities and add numeric entities?  :)

-Hao

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org