http://www.perlmonks.org?node_id=1039735

vasanthgk91 has asked for the wisdom of the Perl Monks concerning the following question:

I passing the data from html page(contactus.html) to cgi page.Every time I passing Other language string as input.Showing wrong length.

use HTML::Entities; use CGI; my $cgi=new CGI; my $message=$cgi->param('message'); $message=decode_entities($message); my $message_fld_length=length($message); print "$message_fld_length";

The same code working... I passing the data from cgi page(contactus.cgi) to cgi page.I passing other language data as input.Here length working good. Can u please give a suggestion.Why input coming from html page na not working decode_entites.