Bug 17135 - Charset problem (UTF-8)
: Charset problem (UTF-8)
Status: UNCONFIRMED
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 7.5.3
: Other Linux (other)
: -- normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
: charset_issues
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-07 10:24 UTC by Jacob Laursen
Modified: 2011-04-11 07:58 UTC (History)
1 user (show)

See Also:
Category: Bug


Attachments
Combined screenshot (244.33 KB, image/png)
2011-04-07 10:24 UTC, Jacob Laursen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Laursen 2011-04-07 10:24:56 UTC
Created attachment 7227 [details]
Combined screenshot

I have set up a custom filename for artwork under Advanced/Formatting/Artwork:
../Folder.jpg (see screenshot). This it because I want to use Folder.jpg form
the parent directory, when the current directory doesn't have any. It doesn't
completely work this way, but I'll come back to this.

The problem is that if the current directory contains any non-ASCII characters,
such as the Danish "ø" (ø) the artwork won't make it into the library
(see screenshot).

A possibly related issue is that during the scan, non-ASCII characters will be
displayed wrong on the information page (see screenshot).

It's working fine everywhere else, even when viewing the filename in the
detailed information for a song. I'm using UTF-8 as character set everywhere,
including the filesystem. I'm using the SqueezeCenter package for Synology
Diskstation.

Parent directory listing (from PuTTY, with character set translation UTF-8):

DiskStation> ls /volume1/music/orig/flac/Anne\ Linnet\ Boksen
Anne Linnet Boksen (CD 1) - De Skønne  Anne Linnet Boksen (CD 4) - De Stille
Anne Linnet Boksen (CD 2) - De Bløde   Anne Linnet Boksen (CD 5) - De Andre
Anne Linnet Boksen (CD 3) - De Hårde   Folder.jpg

DiskStation> ls /volume1/music/orig/flac/Anne\ Linnet\ Boksen/*/*.jpg
ls: /volume1/music/orig/flac/Anne Linnet Boksen/*/*.jpg: No such file or
directory

Final note: To look for "Folder.jpg" first and "../Folder.jpg" afterwards, I've
had to modify SqueezeCenter/Slim/Music/Artwork.pm - I've replaced the line:

    unshift @filestotry, $artwork;

with:

    push @filestotry, $artwork;

This is however unrelated to the problem. I would like to suggest, though, that
this is changed, and possibly even making it possible to enter more than one
custom filename for artwork. This way the user could completely control the
search order by overriding the default filenames.