summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rhimport.pm3
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;