V.Ramkumar wrote:
Hi List,
I am doing entity conversion decimal entity (input xml) 2 named
entity(output xml) in perl using HTML::Entities::Numbered. But it's not
returning named entity for some decimal entities. If any body have idea to
avoid the below issue, please share with me.
Ex: Coding.
use HTML::Entities::Numbered();
my $str=HTML::Entities::Numbered::decimal2name("Ḥ");
print "Ḥ\t$str\n";
my $str=HTML::Entities::Numbered::decimal2name(" ");
print " \t$str\n";
Tool output:
Ḥ Ḥ
 
Expected output:
Ḥ &Hdb;
 
Regards,
Ramkumar
Please look for
&Hdb; into the source code. The reason of this behaviour became obvious.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/