Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -wl
    use strict;
    ...
    my $text = "advice to Gwenda to “let sleeping murder lie.”
    +";
    
    print unidecode( decode_entities($text) );   # advice to Gwenda to "le
    +t sleeping murder lie."
    
  2. or download this
    #!/usr/bin/perl -wl
    use strict;
    ...
    $text =~ s/&#(\d+);/chr $1/ge;
    
    print unidecode($text);                      # advice to Gwenda to "le
    +t sleeping murder lie."