From 6599cd20aa3885ade1a9fd16bf4fe255ca6e94bd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 8 Sep 2015 18:40:09 +0200 Subject: fixed utf8 issues with uri_uescape 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; -- cgit v0.10.2