International character problem

Need help? Post your questions here.

Moderator: moderators

International character problem

Postby zzzyzygy » Mon Aug 16, 2010 3:59 am

Any folders that have international characters in their name seem to come and go randomly from the list on the left side of the screen. They're either all visible or they're all not.

Whether they are visible or not, the number of artists, albums, etc. does not change, so they're always in the catalog but sometimes not in the list. So this appears to be a display problem.

I have seen quite a few threads about this problem, but none of the suggestions in them have worked for me. I'm using Subsonic 4.0.1 on Ubuntu 10.04. This appears to be a defect. Has anyone found a solution for it?
zzzyzygy
 
Posts: 8
Joined: Mon Aug 16, 2010 3:40 am

Postby zzzyzygy » Fri Aug 20, 2010 3:45 pm

Update: International characters in song titles now display properly even when the names are missing from the list at left. They used to appear as question marks when the names at left were missing. I didn't change anything.

This is a very annoying defect because of its random behavior. A significant portion of my music collection may or may not be available at any moment.
zzzyzygy
 
Posts: 8
Joined: Mon Aug 16, 2010 3:40 am

Postby Kirk » Fri Aug 20, 2010 8:24 pm

It is also a difficult issue to troubleshoot because it's so intermittent.

Could you take a few cropped screenshots and show us some of the specific characters it's not allowing periodically?

Cheers,
Kirk
Image
User avatar
Kirk
 
Posts: 310
Joined: Tue Jun 08, 2010 5:45 pm
Location: Illinois, USA

Same Problem but I stepp forther

Postby berjanjo » Thu Aug 26, 2010 3:45 pm

Hello,
I have the same Problem.
I use Ubuntu 10.4 and the standalone Server,
also use many äöüß & co.
I figured out, If I start Subsonic in auto-start Subsonic is not able
to show äöüß & co, but If I start subsonic manually after boot-up over terminal it works perfect. I tried many ways with "sleep 120" in start script so the Subsonic starts after Boot-up, but it wont work, still no äöü after auto-start.
For now I start subsonic every time manually after Server Re-boot. It is a very very dirty workaround but I don't have to restart my Server very often. Maybe you find a resolution how the Auto-start & ÖÄÜß is working together.

Nice Greetings Björn
berjanjo
 
Posts: 2
Joined: Fri Aug 13, 2010 4:05 pm

Postby strixx » Mon Aug 30, 2010 8:56 am

Hi,

Just tried out Subsonic and have the same problem.
I run Subsonic on a Ubuntu 10.04 Server Edition.

The problem is when the artist name contains a international character it won't show in the left column. But if a song contains a international character the song shows in the centre frame, with the characters replaced with a question mark.

Could the problem be with different charset used. All my music is transformed from cd to mp3 and aac with WinAmp in Windows.

I had the same problem with file names when I migrated to Linux from Windows, and had to mount my USB-HD with the iocharset=iso8859-1 option to get the right characters. But when then copying all my music onlny the file names became correct, and of course the id3-tag is still with the wrong charset.

I have a similar problem when listing files with international characters with the File Manager in Webmin. This is also a Java program.

When accessing the files over SMB (Samba) it all shows correct. No matter what platform on the client.

So is the problem in what charset Java uses?
Can you change it in Java, like in Python where you only have to ad one row in the beging like
Code: Select all
# -*- coding: iso8859-1 -*-

Anyone with programming skills that would like to check out if I'm on to something?
strixx
 
Posts: 4
Joined: Mon Aug 30, 2010 8:27 am

Postby delcypher » Mon Aug 30, 2010 4:50 pm

delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am

Postby strixx » Tue Aug 31, 2010 6:27 am

Thanx, that did half the job, but not all. It fixed the question marks in the centre frame, but there is still one problem left.

I have my music on to different places, so I've added two paths in the settings. If I have the drop down list in the left column showing all music I still can not see artists with international characters in their name. But if I choose only one folder the artists is seen.

This didn't change by adding "export LANG". I could see the international characters in the left column before adding this line, but only if I choose one of the folders containing my music. But if I clicked on one of the artists nothing happened. Now that works. And I get the records in the centre frame, just like it's supposed to do.

But as I wrote earlier. I still can't see artists with international characters in the left column when showing all music.
strixx
 
Posts: 4
Joined: Mon Aug 30, 2010 8:27 am

Postby mahikeulbody » Tue Aug 31, 2010 3:20 pm

strixx wrote:But as I wrote earlier. I still can't see artists with international characters in the left column when showing all music.

I confirm that.
mahikeulbody
 
Posts: 17
Joined: Sat Aug 28, 2010 3:36 pm

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

I too can't see any artists with international characters.
turmoil
 
Posts: 2
Joined: Wed Sep 01, 2010 1:18 pm

Postby strixx » Wed Sep 01, 2010 10:43 pm

This must be a bug.

As I explained above it works fine if you have two or more folders that contains your music. As long as you don't choose to view all folders, then they disappears.

Is there a place to report a bug? I can't find it. Or should I post a topic in the "Feature Requests" part of the forum?
strixx
 
Posts: 4
Joined: Mon Aug 30, 2010 8:27 am

Postby courtarro » Wed Sep 22, 2010 3:56 am

I'd like to "vote" for this bug. I've tried the en_US.UTF-8 values placed in various configuration files, all to no avail. My problem is the following artist name:

Röyksopp

The funny thing is that this artist showed up in my full file list a few weeks ago. Maybe some Ubuntu setting outside Subsonic is screwing with SS's support of extended characters? Also funny: I can search for "sopp" and the songs show up in the database ... but the artist isn't listed in the left-hand side of the web interface, and it doesn't show up in the Android client's full list. Any ideas?

EDIT

Shortly after posting this message, the problem went away. The most recent change I made was adding the following lines to /etc/init.d/subsonic (immediately following "### END INIT INFO"):

Code: Select all
export LC_CTYPE=en_US.UTF-8
export LANG=en_US.UTF-8


To be perfectly open, I had also modified /etc/default/subsonic, adding:

Code: Select all
export LC_CTYPE=en_US.UTF-8


And I tried adding to /usr/share/subsonic/subsonic.sh the following line:

Code: Select all
export LANG=en_US.UTF-8


That's the full documentation of my experimentation, and I'm honestly not sure what ended up working. I do know that I had to restart the server and rebuild the search database after making the change in order for it to take effect ... but which changed worked? Dunno. Will the fix be permanent? Dunno that either.
courtarro
 
Posts: 10
Joined: Sun Feb 07, 2010 3:36 pm

Postby bormuff » Wed Sep 22, 2010 7:33 am

I'd not noticed that my index wasn't showing any of Beyoncé, Röyksopp or Sven Väth until I read this thread.

YMMV but all I had to do was this:

Check what my current LANG is:
Code: Select all
$ echo $LANG
en_GB.UTF-8


Open up /etc/default/subsonic and add:
Code: Select all
export LANG=en_GB.UTF-8

before the SUBSONIC_ARGS line.

The I restarted the Subsonic server:
Code: Select all
sudo service subsonic restart


When all was back up, I did a manual Search update and then reloaded the Index panel and hey presto, all the above appeared.

Note: I added the LANG line to /etc/default/subsonic specifically as that is the file you edit to change the default startup options. /etc/init.d/subsonic calls this file first which then calls /usr/bin/subsonic which is just a symlink to /usr/share/subsonic/subsonic.sh so you shouldn't have to add it anywhere else.

It would be useful to know what OS people who have experienced this problem are using. Seems like a good little tip to add to the wiki.
bormuff
 
Posts: 32
Joined: Fri Apr 17, 2009 5:14 pm

Postby delcypher » Thu Sep 23, 2010 3:05 pm

@bormuff

The reason you're having to do this is because the locale is not setup correctly or the environmental variable for setting the language is not present when the subsonic script runs.

A better (it will use whatever the user has set as their locale language) and more generic version of the command you used for setting language could be the following.

Code: Select all
export $(locale | grep LANG)


I use the stand alone version of Subsonic on Arch linux so I run the shell script to start subsonic manually so it's not a problem.
delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am

Postby jari.j » Mon Oct 25, 2010 4:13 pm

I had a similar problem with Ubuntu 10.04 server and WinXP and Android clients, but adding

LC_CTYPE=$LANG
LANG=$LANG

to the beginning of /etc/init.d/subsonic after PATH, DESC, etc. and restarting Subsonic server solved it. No problem whatsoever with åäö any more.
jari.j
 
Posts: 1
Joined: Mon Oct 25, 2010 4:07 pm

Postby piethein » Sat Dec 04, 2010 7:46 pm

Thank you people! Would be great if the fix for the issue (well, asian characters seem to stay problematic) could be implemented in the packaged software!
piethein
 
Posts: 35
Joined: Fri Dec 03, 2010 5:58 pm

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 24 guests