Page 1 of 1

Subsonic doesn't show folders with foreign characters

PostPosted: Sun Jun 20, 2010 8:42 pm
by karvanapa
Subsonic doesn't show folders with foreign characters. Song names are with characters like ä,ö and å are shown correctly.

I've installed Subsonic on Ubuntu with following information:
4.0.1 (build 1524)
jetty-6.1.x, java 1.6.0_0, Linux (48.0 MB / 56.1 MB)

I've found threads with similar problems but none of them seem to help. I think that the folder names in my music folder are not in UTF-8 because I've moved files and folders from my Windows machine using samba.

When I updated from 3.9 to 4.0 Subsonic indexed all folders, but after I restarted my Ubuntu machine this problem appeared again. Nothing seems to help...

PostPosted: Mon Jun 21, 2010 7:33 pm
by karvanapa
I noticed now that some of the files with foreign characters are shown correctly, but in some of them the characters are shown as � mark and subsonic wont play them.

I've tried to reinstalling subsonic and java-packages but no help. Doesn't anyone have any ideas?

PostPosted: Tue Jun 22, 2010 12:45 am
by ccandreva
Make sure the LANG environment variable is set. With the standard Fedora packages it wasn't, and I had to add these lines to /etc/sysconfig/subsonic

Code: Select all
LANG=en_US.UTF-8
LC_COLLATE=C

PostPosted: Tue Jun 22, 2010 4:23 pm
by karvanapa
It works now! I noticed that after restaring Subsonic folders started to work. I didn't notice it before because I didn't rebuild the index.

I tried putting these lines:
LANG=en_US.UTF-8
LC_COLLATE=C

into /etc/init.d/subsonic and /etc/default/subsonic but it didn't help.

Then I tried the same with:
export LC_CTYPE
LC_CTYPE=en_US.UTF-8

Everything started to work after I put these lines into /etc/default/subsonic.

Thank you for pointing me into to the right direction ccandreva!

PostPosted: Mon Jul 05, 2010 7:33 am
by frason
karvanapa wrote:It works now! I noticed that after restaring Subsonic folders started to work. I didn't notice it before because I didn't rebuild the index.

I tried putting these lines:
LANG=en_US.UTF-8
LC_COLLATE=C

into /etc/init.d/subsonic and /etc/default/subsonic but it didn't help.

Then I tried the same with:
export LC_CTYPE
LC_CTYPE=en_US.UTF-8

Everything started to work after I put these lines into /etc/default/subsonic.

Thank you for pointing me into to the right direction ccandreva!


Thanks, I added the lines you wrote to /etc/init.d/subsonic
Now it works fine. :)

PostPosted: Mon Jul 12, 2010 11:19 am
by krizze
Thanks a bunch, stupid me started renaming files and stuff, now I don't have to anymore ;)

PostPosted: Wed Jul 21, 2010 10:47 am
by jbaile38
Anyone know how you would you go about doing this with the standalone version running on linux?

PostPosted: Wed Jul 21, 2010 4:28 pm
by dimaj
I'm curious too...
Do we have to modify the .sh script?