diff options
author | Rasmus Steinke <rasi@xssn.at> | 2017-09-24 17:11:52 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2017-09-24 17:11:52 +0200 |
commit | 6206678857c6e42dd524d719c825442af741405a (patch) | |
tree | 101df984a3505a02a98f9240bddbffe57708f79b /clerk | |
parent | b0b16cd0332bc2706b996418247df3d923b5aaf3 (diff) | |
download | perl-app-clerk-6206678857c6e42dd524d719c825442af741405a.tar.gz perl-app-clerk-6206678857c6e42dd524d719c825442af741405a.tar.xz |
fix utf8 filencoding issues
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -372,7 +372,7 @@ sub do_action { if ($tagging eq "true") { $mpd->sticker_value("song", "$uri", "rating", "$rating"); } - $mpd->send_message('rating', "$uri\tRATING\t${rating}"); + $mpd->send_message('rating', encode('UTF-8', "${uri}\tRATING\t${rating}")); } } elsif ($action eq "Add\n" || $action eq "Replace\n") { @@ -410,7 +410,7 @@ sub do_action { my $filename = $songs->{uri}; $mpd->sticker_value("song", $filename, "albumrating", "$rating"); if ($tagging eq "true") { - $mpd->send_message('rating', "$filename\tALBUMRATING\t${rating}"); + $mpd->send_message('rating', encode('UTF-8', "${filename}\tALBUMRATING\t${rating}")); } } } |