Subsonic international character (UTF-8) support

The discussion lounge for third-party packages.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form: ... p?lang=enu

2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
Posts: 12
Joined: Wed Nov 21, 2012 3:47 am

Subsonic international character (UTF-8) support

Unread post by 2mny » Wed Nov 21, 2012 4:45 am

So at some point I noticed that all my international music wasn't showing up in Subsonic. Don't know if this was always the case or if a recent update broke something. If you have the same issue, here's how to get it working.

My package versions are as follows but this guide should work for other versions as well.
DSM 4.1-2647
Subsonic 4.7-028 w/ MashupMod from
Java 1.7.0_06-1 from MissileHugger

steps to get things working:

-install UTF-8 locale ... ort-utf-8/
To get /opt you will need to bootstrap your DiskStation

-add locale settings to

Code: Select all


### UTF-8 Support
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"


Code: Select all

  -Dsubsonic.home=${SUBSONIC_HOME} \${SUBSONIC_HOST} \
  -Dsubsonic.port=${SUBSONIC_PORT} \
  -Dsubsonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
  -Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
  -Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
  -Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
  -Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
  -Djava.awt.headless=true \
  -Dfile.encoding=UTF8 \
  -verbose:gc \
  -jar subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &
-Refresh your subsonic database: Backup subsonic. Remove your media folders from Subsonic. Scan folders and clean database. Re-add media folders. If your artist list on the left repopulates instantly after selecting "Scan media folders now" then your database was not completely cleaned and you will need to try again.

Posts: 12
Joined: Wed Nov 21, 2012 3:47 am

Re: Subsonic international character (UTF-8) support

Unread post by 2mny » Fri Dec 21, 2012 4:30 am

Updated DiskStation and Subsonic would not start. I re-did the locale settings and got it running again.

I think letting locale binaries live in /usr/local/bin instead of /opt/bin might be a bit more update-proof and could eliminate the need for bootstrap.

Post Reply

Return to “Third-party Packages”