summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-09-24 17:11:52 +0200
committerRasmus Steinke <rasi@xssn.at>2017-09-24 17:11:52 +0200
commit6206678857c6e42dd524d719c825442af741405a (patch)
tree101df984a3505a02a98f9240bddbffe57708f79b /clerk
parentb0b16cd0332bc2706b996418247df3d923b5aaf3 (diff)
downloadperl-app-clerk-6206678857c6e42dd524d719c825442af741405a.tar.gz
perl-app-clerk-6206678857c6e42dd524d719c825442af741405a.tar.xz
fix utf8 filencoding issues
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk4
1 files changed, 2 insertions, 2 deletions
diff --git a/clerk b/clerk
index c7aab4d..51624f9 100755
--- a/clerk
+++ b/clerk
@@ -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}"));
}
}
}