Off-topic?: Character set problems

Need help? Post your questions here.

Moderator: moderators

Off-topic?: Character set problems

Postby twiztar » Mon Oct 13, 2008 8:31 pm

Hi,

I'm running subsonic with tomcat + apache on linux and it all works fine, except that I have some character set issues. It's a typical UTF-8/ISO-8859-1 problem, but I can't find the underlying cause.

System locale is en_US.UTF-8 and the html source correctly identifies itself as UTf-8.

One thing that comes to mind is that this could be coming directly from the ID3-tag, does subsonic convert such info to UTF-8 first or is it just delivered to the browser?

Any ideas ?

edit:
Just a small clarification, these problems only occur in song titles / information. All special characters like '()æøå#!" etc show as question marks.

edit2:
I just tested something, if I change the tags on the song(s) in question, they behave just fine.. Is it possible for subsonic to read those tags in whatever format they are and convert it to UTF-8 before passing it to the browser ?
twiztar
 
Posts: 24
Joined: Fri Oct 10, 2008 12:15 pm

utf-8 tagging

Postby jimbothigpen » Fri Oct 24, 2008 12:25 pm

From command line, you could use http://code.google.com/p/mp3-tag-iconv/, or the Easytag GUI.
jimbothigpen
 
Posts: 6
Joined: Fri May 02, 2008 3:40 pm

Postby twiztar » Sat Oct 25, 2008 6:02 pm

Thanks, I'll try that :-D
twiztar
 
Posts: 24
Joined: Fri Oct 10, 2008 12:15 pm

Postby sindre_mehus » Sun Oct 26, 2008 4:28 pm

twiztar,

Could you please email me one of the offending files so I can try to reproduce? Subsonic is supposed to use utf-8 all over, so I want to get to the bottom of this.

Thanks,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby twiztar » Sun Oct 26, 2008 11:03 pm

It's sent :-)
twiztar
 
Posts: 24
Joined: Fri Oct 10, 2008 12:15 pm

Postby sindre_mehus » Mon Oct 27, 2008 11:20 am

Thanks.

It works properly on Windows, at least. I don't have a Linux system to test with, so I don't think I can help you much further.

Just one thought: what happens if you change the locale to iso-8859-1? (That is the default char encoding on Windows, if I remember correctly).

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby twiztar » Mon Oct 27, 2008 1:52 pm

I just tried to convert it with eyed3 and apparently only id3tag v2.4 supports utf-8.

Any chance for an option like 'Update all files to id3tag version X' ?

Converting them manually is acceptable for me, but maybe converting them automatically would be a better solution if this happen to other people as well.
twiztar
 
Posts: 24
Joined: Fri Oct 10, 2008 12:15 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 11 guests