Help for this page

Select Code to Download


  1. or download this
    sub nice_string {
    join("",
            map { $_ > 255 ? # if wide character...
    ...
        chr($_)                     # else as themselves
        } unpack("U*", $_[0]));     # unpack Unicode
    }
    
  2. or download this
    my $rss = new XML::RSS;
    eval { $rss->parse(nice_string(get($url))); };