encode_entities($a, "\000-\377"); [download]
In reply to Re: HTML::Entities not encoding @ or . by Anonymous Monk in thread HTML::Entities not encoding @ or . by punch_card_don