Charset problems

Need help? Post your questions here.

Moderator: moderators

Charset problems

Postby bux » Thu Aug 26, 2010 9:57 am

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 ^^
bux
 
Posts: 13
Joined: Thu Aug 26, 2010 9:51 am

Re: Charset problems

Postby jrh.koenig » Fri Aug 27, 2010 2:33 am

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 ^^
jrh.koenig
 
Posts: 18
Joined: Sat Feb 27, 2010 3:51 pm
Location: Frankfurt, Germany

Postby bux » Fri Aug 27, 2010 8:12 am

Thank you !
If i have new problems, i back on the topic =)
bux
 
Posts: 13
Joined: Thu Aug 26, 2010 9:51 am

Re: Charset problems

Postby mahikeulbody » Sat Aug 28, 2010 4:12 pm

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=
mahikeulbody
 
Posts: 17
Joined: Sat Aug 28, 2010 3:36 pm

Re: Charset problems

Postby jrh.koenig » Mon Aug 30, 2010 3:50 pm

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=
jrh.koenig
 
Posts: 18
Joined: Sat Feb 27, 2010 3:51 pm
Location: Frankfurt, Germany

Postby turmoil » Wed Sep 01, 2010 1:21 pm

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.
turmoil
 
Posts: 2
Joined: Wed Sep 01, 2010 1:18 pm

Postby jrh.koenig » Wed Sep 01, 2010 5:57 pm

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
jrh.koenig
 
Posts: 18
Joined: Sat Feb 27, 2010 3:51 pm
Location: Frankfurt, Germany

Postby ahar » Fri Nov 05, 2010 12:10 pm

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?
ahar
 
Posts: 1
Joined: Fri Nov 05, 2010 11:02 am

Postby dcuellar » Fri Feb 11, 2011 1:36 pm

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?
dcuellar
 
Posts: 97
Joined: Sat Feb 05, 2011 3:23 pm

Postby dcuellar » Mon Feb 14, 2011 3:11 am

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.
dcuellar
 
Posts: 97
Joined: Sat Feb 05, 2011 3:23 pm

Postby jaja » Mon Feb 14, 2011 10:10 am

Hi !

I'm french too and no problem under kubuntu 10.10 with kde sc 4.5.5 ans subsonic 4.4.
regards
jaja
User avatar
jaja
 
Posts: 32
Joined: Mon Jan 24, 2011 1:21 pm

Re: Charset problems

Postby lod » Fri May 09, 2014 6:34 am

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=
lod
 
Posts: 2
Joined: Fri May 09, 2014 6:21 am

Re: Charset problems

Postby lod » Mon Sep 29, 2014 7:05 am

Not solved with Subsonic 5 :'(

*** Solved with a new OS installation ***
lod
 
Posts: 2
Joined: Fri May 09, 2014 6:21 am


Return to Help

Who is online

Users browsing this forum: No registered users and 18 guests