See the decode_entities method of HTML::Entities.
In reply to Re: Special characters in perl/cgi by marto in thread Special characters in perl/cgi by sharief