--- C:/Programme/SqueezeCenter/server/Slim/Plugin/MusicMagic/Plugin.pm.sav Thu Dec 11 14:38:46 2008 +++ C:/Programme/SqueezeCenter/server/Slim/Plugin/MusicMagic/Plugin.pm Sat Dec 13 18:58:42 2008 @@ -463,6 +463,22 @@ @moods = split(/\n/, $response->content); + if (scalar @moods) { + # MIP returns mood names as UTF-8 even on windows, so we need to convert + for my $mood (@moods) { + + if ($isWin) { + + $mood = Slim::Utils::Unicode::utf8decode_guess( + $mood, Slim::Utils::Unicode::encodingFromString($mood), + ); + } + + # need conversion to the current charset. + $mood = Slim::Utils::Unicode::utf8encode_locale($mood); + } + } + if ($log->is_debug && scalar @moods) { $log->debug("Found moods:");