Page 1 of 2
International Characters

Posted:
Wed Oct 17, 2007 6:58 am
by FlyingSaucrDude
Hi there,
I have a quick question: does Subsonic support international characters in filenames? (E.g. characters with accents, etc.) I have a large collection of international music, but Subsonic doesn't seem to recognize the music with international characters. (For example, directories with international characters don't even show up in subsonic.)
I checked the subsonic log, and it doesn't say a thing about this problem...
I'm running Subsonic 3.2, Tomcat 5, and Java 1.6...on Linux FC7.
I realize it could be more a problem with Java, Tomcat, or even my Linux install...so I'd like to narrow it down. Any suggestions?

Posted:
Sat Oct 27, 2007 4:40 pm
by FlyingSaucrDude
Can anyone at least tell me if they've had success with international characters before?

Posted:
Sun Oct 28, 2007 10:45 pm
by jigsaw
FlyingSaucrDude wrote:Can anyone at least tell me if they've had success with international characters before?
Norwegian characters like æ, ø and å are working perfectly for me. Both in folder names and song names.

Posted:
Sun Oct 28, 2007 10:46 pm
by FlyingSaucrDude
Just out of curiosity, are you running Windows, or Linux?

Posted:
Sun Oct 28, 2007 10:49 pm
by jigsaw
FlyingSaucrDude wrote:Just out of curiosity, are you running Windows, or Linux?
I'm running subsonic on Fedora Core 6 but all my media files are mounted from a Windows XP machine with Samba.

Posted:
Sun Oct 28, 2007 10:52 pm
by FlyingSaucrDude
I don't suppose you want to do me a huge favor and just make a temporary directory directly on your linux box, with international characters, add it to subsonic's list, and see what happens?
I don't blame you if you don't...but then I'd know whether it's me/my setup or not.

Posted:
Sun Oct 28, 2007 10:58 pm
by jigsaw
FlyingSaucrDude wrote:I don't suppose you want to do me a huge favor and just make a temporary directory directly on your linux box, with international characters, add it to subsonic's list, and see what happens?
I don't blame you if you don't...but then I'd know whether it's me/my setup or not.
Sure thing.. What characters are you referring to then?

Posted:
Sun Oct 28, 2007 11:00 pm
by FlyingSaucrDude
I know for sure that any file or directory with a "é" isn't working on my system...my guess is Norwegian characters wouldn't work either, but I haven't tried and I don't have access to it at the moment...I'll probably try some of the characters you mentioned later tonight.

Posted:
Sun Oct 28, 2007 11:04 pm
by jigsaw
Tested now with both folders and music files which contained æ,ø,å and even é. All worked perfectly for me.
Tested both at Samba-share from Windows XP and locally on FC6

Posted:
Sun Oct 28, 2007 11:06 pm
by FlyingSaucrDude
Wow -- thank you soooo much, jigsaw. I really, really appreciate it.
Of course, that means I have to dig further to figure out what the deal is with my setup, but at least now I know!


Posted:
Sun Oct 28, 2007 11:09 pm
by jigsaw
FlyingSaucrDude wrote:Wow -- thank you soooo much, jigsaw. I really, really appreciate it.
Of course, that means I have to dig further to figure out what the deal is with my setup, but at least now I know!

No problem, glad to help
Have you tried looking into what encoding you are using as default character-set? I'm using UTF-8.. Don't know if that has anything to do with your problem, but maybe it's worth looking into..
Good luck!
Remember to post the answer, if you ever find it, for future references


Posted:
Tue Oct 30, 2007 8:11 pm
by FlyingSaucrDude
Still no solution...my default character set is also UTF-8, so I don't know what's up...maybe I'll look into seeing if subsonic has some sort of massively verbose debugging mode...

Posted:
Tue Oct 30, 2007 9:24 pm
by sindre_mehus
My gut feeling is that the problem is related to the samba share, and that Java somehow isn't happy with how it's mounted.
I don't have a linux system to play with, unfortunately, but Google came up with this:
http://ubuntuforums.org/showthread.php?t=288534
Please post the solution if you find it!
Cheers,
Sindre

Posted:
Tue Oct 30, 2007 11:13 pm
by FlyingSaucrDude
Hi Sindre,
I'm not using a samba share, so that can't be the issue...the files I'm trying to access are on a normal Linux filesystem (the same filesystem that subsonic/tomcat/java/linux itself are on).
I'm really not even sure how to figure out what the problem is, at this point...does subsonic have any sort of debugging mode I can turn on to see what's going on? It seems like it's recognizing that the files/directories exist somehow, but when it actually tries to open them, it can't find them.
For example, when I try to download a file with an "é" in it, the resulting filename I get is corrupted where the "é" appears, and the file is also 0 bytes in size.
I'm really not sure what to make of it...

Posted:
Tue Oct 30, 2007 11:53 pm
by jigsaw
Probably a stupid question, but I assume that the song in question play fine if you access it directly on the filesystem? Considering you are running the browser from the same machine as Subsonic is running on I mean.
Have you tried to access the file through a browser on a Windows machine to see if you get the same result?
Seems weird to me that Subsonic should do this and it is nearer to believe it is an OS thing..