Help for this page

Select Code to Download


  1. or download this
    sub UTF8_latin1
    { # UTF-8 to latin1 regex from XML::TiePYX (thanks to mirod)
    ...
     }ge;
    return $text;
    }
    
  2. or download this
    foreach my $node (@$nodes) {
            $node->{cdata} = UTF8_latin1($node->{cdata}); # ADDED
    ...
            $node_text .= (' ' x 2) . $q->small(" by $author") if $SH
    +OW_AUTHOR;
            print $node_text;
    }