Issue with displaying Unicode characters (Greek)

Need help? Post your questions here.

Moderator: moderators

Issue with displaying Unicode characters (Greek)

Postby samaklis » Sun Jan 02, 2011 7:44 pm

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
samaklis
 
Posts: 2
Joined: Sun Jan 02, 2011 7:39 pm

Postby stozher » Sun Jan 02, 2011 9:56 pm

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)
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby samaklis » Mon Jan 03, 2011 1:01 pm

This did it.

Thanks for the reply.
samaklis
 
Posts: 2
Joined: Sun Jan 02, 2011 7:39 pm

Postby stozher » Mon Jan 03, 2011 6:01 pm

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")
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby sindre_mehus » Fri Jan 07, 2011 12:55 pm

Thanks, I've added the /etc/default/locale thing in Subsonic 4.3.
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 19 guests