Page 1 of 1

Off-topic?: Character set problems

PostPosted: Mon Oct 13, 2008 8:31 pm
by twiztar
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 ?

utf-8 tagging

PostPosted: Fri Oct 24, 2008 12:25 pm
by jimbothigpen
From command line, you could use http://code.google.com/p/mp3-tag-iconv/, or the Easytag GUI.

PostPosted: Sat Oct 25, 2008 6:02 pm
by twiztar
Thanks, I'll try that :-D

PostPosted: Sun Oct 26, 2008 4:28 pm
by sindre_mehus
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

PostPosted: Sun Oct 26, 2008 11:03 pm
by twiztar
It's sent :-)

PostPosted: Mon Oct 27, 2008 11:20 am
by sindre_mehus
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

PostPosted: Mon Oct 27, 2008 1:52 pm
by twiztar
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.