in reply to Decoding unicode entities with HTML::Parser
HTML::Entities provides _decode_entities (not HTML::Parser), so it would be more relevant to include the version of HTML::Entities.
Update: So this would be a better test case:
use HTML::Entities qw( decode_entities _decode_entities ); print(HTML::Entities->VERSION(), "\n"); # Not really, but good enough and avoids warning. binmode(STDOUT, ':encoding(UTF-8)'); my $x = "ř"; _decode_entities($x, {}); print("$x\n"); print(decode_entities("ř"), "\n");
>c:\progs\perl580\bin\perl script.pl 1.23 ř ř >c:\progs\perl588\bin\perl script.pl 1.32 [some char] [some char]
Update: Oh I see, HTML::Entities is part of HTML-Parser. Best if you just ignore this post.
|
|---|