Page 1 of 1

Wrong encoding for national characters, folders disappear.

PostPosted: Tue Aug 21, 2012 1:31 pm
by dnf
Hi all,
I have problem with national characters. I found the same problem occurred for some people here, but none of their solutions worked for me, or thread is abandoned. My version is 4.7.beta1, I'm on arch linux using package from AUR (unsupported) repository, using supersonic - which is fork of subsonic, the jar is called subsonic also. Well, the problem is, that:

1) No folder with any national characters are displayed on left pane, and
2) even that some files with national characters are displayed in main area, there are only question marks instead of national characters. If there is character ž in the name, file will NOT be displayed at all. There may be more exceptions like this. Characters in the web page IS in unicode and it actually IS question mark character.

What I tried is that I have checked all language variables from which java should know to use en_US.UTF-8, ans display everything normally.

for example, and as proof my system is set correctly, this is terminal output. This file and directory is not displayed at all:
Code: Select all
[root@xynns /]# ls /home/public/video/_ceske/Postřižiny/
Postřižiny.avi


However, in this example it is displayed, but with question marks.
Code: Select all
[root@xynns /]# ls /home/public/video/_ceske/A\ bude\ hůř.avi
/home/public/video/_ceske/A bude hůř.avi


and this is subsonic output:

_ceske » A bude h����
Up | Play all | Play random | Add all | Comment


of course that such files cannot be played, found easily, etc. The file name is clearly in wrong shape in database, or read wrong in indexation phase (which has the same effect).

well, now I have every LANG and LC_* variables as en_US.UTF-8. As I'm on arch and starting daemon via script, I'm also forcing LC_ALL=en_US.UTF-8 in start script.

ags:

Code: Select all
-Xmx100m -Dsubsonic.home=/var/supersonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4141 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/home/public/ -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose -jar supersonic-booter-jar-with-dependencies.jar


Is there any problem with my configuration you can clearly see?