Page 1 of 1

4.7 (build 3105) – character issue

PostPosted: Sun Nov 18, 2012 3:58 pm
by dillzz
Installed on Synology DSM 1512+.

I see this with many music listings. I also cannot download them when they are in this state. I had this happen before on a Linux box but I had to just set and solved it with the entries below in the startup script:

export LANG="en_US.utf8"
export LC_CTYPE="en_US.utf8"


This now happens with with foreign characters and apostrophes even if I put that in. Any thoughts?

Example: like a Song���.mp3

Re: 4.7 (build 3105) – character issue

PostPosted: Sun Nov 18, 2012 4:17 pm
by hakko
Does it make a difference if you add the parameter -Dfile.encoding=UTF8 to java in your startup script?

Re: 4.7 (build 3105) – character issue

PostPosted: Sun Nov 18, 2012 4:49 pm
by dillzz
hakko,

I tried and did a rescan of the library, however no change. . .

Re: 4.7 (build 3105) – character issue

PostPosted: Sun Nov 18, 2012 5:22 pm
by hakko
I'm not sure on how this will work exactly (and I don't use 4.7 myself). But for one it seems like the 4.7 media scanner looks at the "modified" property of directories, so to force an actual rescan, you'd have to something like

Code: Select all
find . -exec touch {} \;


(in the directory containing UTF8 file names) to have your files detected as "new" by the media scanner.

Re: 4.7 (build 3105) – character issue

PostPosted: Sun Nov 18, 2012 8:40 pm
by dillzz
Well I cleared out the db and re initialed the library using your setting and the ones i mentioned prior. Still the same results. . . Very frustrating because prior to this update it worked fine. Thank you for the prompt responses.

Re: 4.7 (build 3105) – character issue

PostPosted: Sun Nov 18, 2012 8:43 pm
by dillzz
[2012-11-18 15:38:42,958] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/04. Rembihn??tur.mp3
[2012-11-18 15:38:42,963] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/03. Var????.mp3
[2012-11-18 15:38:42,968] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/08. Fj??gur p??an??.mp3
[2012-11-18 15:38:42,973] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/06. Var??eldur.mp3
[2012-11-18 15:38:42,978] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/01. ??g anda.mp3
[2012-11-18 15:38:42,982] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/02. Ekki m??kk.mp3
[2012-11-18 15:38:42,987] WARN FileUtil - Failed to list children for /volume1/Music/Alternative/Sigur Ros/2012 - Valtari/05. Dau??alogn.mp3


Here is a sample of what is in the subsonic.log

Re: 4.7 (build 3105) – character issue

PostPosted: Sun Nov 18, 2012 9:35 pm
by dillzz
Just installed the same build on a Fedora 17 box and all works fine without any modification. . . I would really like to keep this service on the synology.

Re: 4.7 (build 3105) – character issue

PostPosted: Sun Nov 18, 2012 9:54 pm
by dillzz
So I dropped back to a 4.6 build on the synology and I am still seeing the issue. Perhaps something changed with the DSM upgrade (Currently running 4.1-2647, there is an update to 4.1-2661, I will see what happens)

Re: 4.7 (build 3105) – character issue

PostPosted: Mon Nov 19, 2012 1:14 am
by dillzz
Updated dsm and no change

Sent from my Nexus 7 using Tapatalk 2

Re: 4.7 (build 3105) – character issue

PostPosted: Mon Nov 19, 2012 1:58 am
by TorbenB
I've been seeing the exact same problems on my QNAP server when I upgraded to 4.7, but seem to have fixed it.

First up, this:
export LANG="en_US.utf8"
export LC_CTYPE="en_US.utf8"

didn't do anything for me, but opening a shell and entering "locale", I noticed that what was already registered, was "en_US.UTF-8", so I changed it to:
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"


and added -Dfile.encoding=UTF8 to the Java section in subsonic.h

I also deleted my existing database (actually most of the home folder content) and did my experiments on a couple of folders, each containing a few artists and albums. This means I'll have to scan everything again, but I'd rather do that and know it works now, than having a messed up database. Of course losing users and other registrations in the database is another issue.

So I'm not sure if it was just deleting the existing database or a combination of it all, but now Subsonic scans my folder structure, where I have artists like "ÜNN", that wasn't scanned before, and tracks with names containing characters like "æ" or "ö" shows up as a normal track in the correct order, and not at the top and non-playable.

Re: 4.7 (build 3105) – character issue

PostPosted: Mon Nov 19, 2012 6:05 am
by hakko
I like to post this link as reference for saving/retrieving users if you move your database around or have it corrupted: viewtopic.php?f=6&t=10338

Re: 4.7 (build 3105) – character issue

PostPosted: Tue Nov 20, 2012 10:44 am
by dillzz
TorbenB,

Sorry for the delayed response. Thank you for the information. I did notice the utf case issue and corrected it earlier. I have not tried both options and clearing the db. I will test tomorrow and update accordingly. Many thanks.

Re: 4.7 (build 3105) – character issue

PostPosted: Wed Nov 21, 2012 5:30 pm
by dillzz
I tried all the suggestions and still have the same results. Looks like I will be leaving it on my Fedora machine until this is resolved.