Page 1 of 1

Charset problems

PostPosted: Thu Aug 26, 2010 9:57 am
by bux
Hello !
I'am an happy user of subsonic ^^
But, i'm french, end some of my albums, musics contains "é", "ï" ... And, subsonic don't see them.
Is it possible to configure charset ?

My installation:

Version: 4.0.1 (build 1524) – 13 mai 2010
Server: jetty-6.1.x, java 1.6.0_0, Linux (74,0 MB / 96,7 MB)
On: (Debian 5.0.4) Linux 2.6.26-2-amd64 x86_64 GNU/Linux

Thank you and sorry for my English ^^

Re: Charset problems

PostPosted: Fri Aug 27, 2010 2:33 am
by jrh.koenig
Hi,

your problem is that your subsonic server hasn'nt the right language setting.
You have to check what is your language setting by locale in a xterm. this command returns as example:
LANG="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_CTYPE="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_ALL=

When you got your settings you have to edit the subsonic start script and add export LANG=<your setting> and if LC_ALL is set you have to unset it in that script by unset LC_ALL Then by next restart of your subsonic server the problem should solved.

Kind Regards

Johannes

bux wrote:Hello !
I'am an happy user of subsonic ^^
But, i'm french, end some of my albums, musics contains "é", "ï" ... And, subsonic don't see them.
Is it possible to configure charset ?

My installation:

Version: 4.0.1 (build 1524) – 13 mai 2010
Server: jetty-6.1.x, java 1.6.0_0, Linux (74,0 MB / 96,7 MB)
On: (Debian 5.0.4) Linux 2.6.26-2-amd64 x86_64 GNU/Linux

Thank you and sorry for my English ^^

PostPosted: Fri Aug 27, 2010 8:12 am
by bux
Thank you !
If i have new problems, i back on the topic =)

Re: Charset problems

PostPosted: Sat Aug 28, 2010 4:12 pm
by mahikeulbody
jrh.koenig wrote:Hi,

your problem is that your subsonic server hasn'nt the right language setting.
[...]

When you got your settings you have to edit the subsonic start script and add export LANG=<your setting> and if LC_ALL is set you have to unset it in that script by unset LC_ALL Then by next restart of your subsonic server the problem should solved.


I understand I have to edit /etc/init.d/subsonic file but I am not sure about what I have to add exactly ("export LANG=fr_FR.utf8" ?) and where I have to add it into the file.

Thanks to help !

My locale is:
LANG=fr_FR.utf8
LC_CTYPE="fr_FR.utf8"
LC_NUMERIC="fr_FR.utf8"
LC_TIME="fr_FR.utf8"
LC_COLLATE="fr_FR.utf8"
LC_MONETARY="fr_FR.utf8"
LC_MESSAGES="fr_FR.utf8"
LC_PAPER="fr_FR.utf8"
LC_NAME="fr_FR.utf8"
LC_ADDRESS="fr_FR.utf8"
LC_TELEPHONE="fr_FR.utf8"
LC_MEASUREMENT="fr_FR.utf8"
LC_IDENTIFICATION="fr_FR.utf8"
LC_ALL=

Re: Charset problems

PostPosted: Mon Aug 30, 2010 3:50 pm
by jrh.koenig
Hi,

a line after the shebang and before the java process is starting. The Shebang (#!/bin/sh) is the first line in a unix shell script.
Use LC_CTYPE for the configuration.

Regards

Johannes
mahikeulbody wrote:
jrh.koenig wrote:Hi,

your problem is that your subsonic server hasn'nt the right language setting.
[...]

When you got your settings you have to edit the subsonic start script and add export LANG=<your setting> and if LC_ALL is set you have to unset it in that script by unset LC_ALL Then by next restart of your subsonic server the problem should solved.


I understand I have to edit /etc/init.d/subsonic file but I am not sure about what I have to add exactly ("export LANG=fr_FR.utf8" ?) and where I have to add it into the file.

Thanks to help !

My locale is:
LANG=fr_FR.utf8
LC_CTYPE="fr_FR.utf8"
LC_NUMERIC="fr_FR.utf8"
LC_TIME="fr_FR.utf8"
LC_COLLATE="fr_FR.utf8"
LC_MONETARY="fr_FR.utf8"
LC_MESSAGES="fr_FR.utf8"
LC_PAPER="fr_FR.utf8"
LC_NAME="fr_FR.utf8"
LC_ADDRESS="fr_FR.utf8"
LC_TELEPHONE="fr_FR.utf8"
LC_MEASUREMENT="fr_FR.utf8"
LC_IDENTIFICATION="fr_FR.utf8"
LC_ALL=

PostPosted: Wed Sep 01, 2010 1:21 pm
by turmoil
jrh.koenig, thank you for your replies, but I personally don't understand the steps that need to be taken in order to implement your solution, it's all too vague. More details would be greatly appreciated. Thanks.

PostPosted: Wed Sep 01, 2010 5:57 pm
by jrh.koenig
turmoil wrote:jrh.koenig, thank you for your replies, but I personally don't understand the steps that need to be taken in order to implement your solution, it's all too vague. More details would be greatly appreciated. Thanks.

Ok,

you have to open the script /etc/init.d/subsonic with an Editor like vi or whatever.
Then a line below ### END INIT INFO
you add the line export LC_CTYPE=en_US.UTF-8
With this configuration you have American English and that support the german umlaute and should be support the french chars too. But if you wish you can set it to de_DE.UTF-8 or fr_FR.UTF-8.

Regards

Johannes

PostPosted: Fri Nov 05, 2010 12:10 pm
by ahar
Problems with Russian language. In locale there are:
# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I do so:
export LANG=ru_RU.UTF-8
export LC_TYPE=ru_RU.UTF-8

But on the site:
����������, or ???????? .

What should I do?

PostPosted: Fri Feb 11, 2011 1:36 pm
by dcuellar
I'm trying to figure this out, but I can't find the file mentioned above. So the name of the file is "Subsonic" ? Is there an extension, or is it just subsonic?

I mean, I'm seeing the folders etc and init.d, but there is no subsonic file there. Does anyone have a copy of that file I can put there?

PostPosted: Mon Feb 14, 2011 3:11 am
by dcuellar
I can confirm the character issue is not happening when I installed subsonic on my macbook with the same library.

I'm interested in knowing how many of you had this issue on a NAS. I had a NAS by Netgear and I was experiencing this same issue. Since it's been down for the past couple days waiting for tech support to fix it, I decided to install subsonic on my macbook pro. Everything is good.

PostPosted: Mon Feb 14, 2011 10:10 am
by jaja
Hi !

I'm french too and no problem under kubuntu 10.10 with kde sc 4.5.5 ans subsonic 4.4.

Re: Charset problems

PostPosted: Fri May 09, 2014 6:34 am
by lod
Hello :)
I am a happy french user and just upgraded to SubSonic 4.9 (build 3853) – 23 janvier 2014 under Linux Mageia 4
jetty-6.1.x, java 1.7.0_55, Linux

Changing a line below ### END INIT INFO in /etc/init.d/subsonic with LC_CTYPE=fr_FR.UTF-8 does not solve charset problem :(
My locale is :
LANG=fr_FR.UTF-8
LC_CTYPE=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=

Re: Charset problems

PostPosted: Mon Sep 29, 2014 7:05 am
by lod
Not solved with Subsonic 5 :'(

*** Solved with a new OS installation ***