I think you may want to first decode the HTML and then encode the string as UTF-8.
use strict; use warnings; use HTML::Entities; use Encode 'encode'; my $titlenamefromindex=q{ஸ்ரீசா&#x +BA8;்த், சவான், ¹ +A;ண்டிலா ஆகி&#x +BAF;ோர் தங்களத& +#xBC1; குற்றங்கள +;ை ஒப்புக் க&#x +BCA;ண்டதாக தகவ& +#xBB2;்}; $titlenamefromindex = decode_entities($titlenamefromindex); print encode('UTF-8', $titlenamefromindex ), "\n";
Output:
ஸ்ரீசாந்த், சவான், சண்டிலா ஆகியோர் தங்களது குற்றங்களை ஒப்புக் கொண்டதாக தகவல்
In reply to Re: language Decoding problem..?
by farang
in thread language Decoding problem..?
by vasanthgk91
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |