Page 1 of 1

Issue with displaying Unicode characters (Greek)

PostPosted: Sun Jan 02, 2011 7:44 pm
by samaklis
Hi, I have a list of mp3 files that are in UTF (Greek). The files display fine in terminal, file manager on my ubuntu server, but it seems that the subsonic server I just installed on the same server displays them with all question marks and refuses to add them to play them or add them to any play list.

Is this a known limitation with the software? I found only a couple of unanswered posts on this topic, so I am wondering if this is something that is being addressed.

Most of my music is Greek, so the proper display of the characters is very important for me.

Thanks

PostPosted: Sun Jan 02, 2011 9:56 pm
by stozher
Change en_US.utf8 with Greek locale!

http://forum.subsonic.org/forum/viewtopic.php?p=17900#17900

http://forum.subsonic.org/forum/viewtopic.php?p=18917#18917

For example my "/etc/default/subsonic":

...

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

SUBSONIC_ARGS="--home=/srv/subsonic --port=80 --max-memory=512 --default-music-folder=/srv/subsonic/Music --default-podcast-folder=/srv/subsonic/Podcast --default-playlist-folder=/srv/subsonic/Playlists"


On my server (WWW link bottom) all work fine (see artist "π=m²" - Greek letter pi)

PostPosted: Mon Jan 03, 2011 1:01 pm
by samaklis
This did it.

Thanks for the reply.

PostPosted: Mon Jan 03, 2011 6:01 pm
by stozher
This day I test Jetty and Tomcat servers from Debian repository and see in "/etc/init.d/..." daemon startup scripts:

Code: Select all
# Make sure Subsonic is started with system locale
if [ -r /etc/default/locale ]; then
    . /etc/default/locale
    export LANG
fi


I include this code in "/etc/default/subsonic" (replace "export ..." from above my post). In next release must be included to "/etc/init.d/subsonic" after variable declarations.

Also I replace in "/usr/share/subsonic/subsonic.sh"

Code: Select all
${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \

with

Code: Select all
${JAVA} -Djava.awt.headless=true -Xmx${SUBSONIC_MAX_MEMORY}m \
  -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode \

"Use '-XX:+UseConcMarkSweepGC' to enable the CMS garbage collector (improved response time). If you use that option and you run Subsonic on a machine with exactly one CPU chip that contains one or two cores, you should also add the '-XX:+CMSIncrementalMode' option." (cite from "/etc/default/tomcat6")

PostPosted: Fri Jan 07, 2011 12:55 pm
by sindre_mehus
Thanks, I've added the /etc/default/locale thing in Subsonic 4.3.