diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-09-08 16:40:09 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-09-08 16:40:09 (GMT) |
commit | 6599cd20aa3885ade1a9fd16bf4fe255ca6e94bd (patch) | |
tree | a9ce0ab853d1c9ff9c8645f6dc15694f0555b323 | |
parent | f4fd11fd93aeba8650f413f4a7a538eb8ba59ea0 (diff) |
fixed utf8 issues with uri_uescape
-rw-r--r-- | rhimport.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rhimport.pm b/rhimport.pm index 66e37f7..dafaf83 100644 --- a/rhimport.pm +++ b/rhimport.pm @@ -30,6 +30,7 @@ use IPC::Open3; use File::Spec; use File::Basename; use URI::Escape; +use Encode qw(decode); use POSIX; use DateTime; use DateTime::TimeZone; @@ -244,7 +245,7 @@ sub import_playlist next if($entry =~ /^\s/); $entry =~ s/\n$//; $entry =~ s/^file:\/\///; - $entry = uri_unescape($entry); + $entry = decode('utf-8',uri_unescape($entry)); next if(-d $entry); next if(!-r $entry); push @entries, $entry; |