International Characters

Need help? Post your questions here.

Moderator: moderators

International Characters

Postby FlyingSaucrDude » Wed Oct 17, 2007 6:58 am

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?
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby FlyingSaucrDude » Sat Oct 27, 2007 4:40 pm

Can anyone at least tell me if they've had success with international characters before?
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby jigsaw » Sun Oct 28, 2007 10:45 pm

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.
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby FlyingSaucrDude » Sun Oct 28, 2007 10:46 pm

Just out of curiosity, are you running Windows, or Linux?
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby jigsaw » Sun Oct 28, 2007 10:49 pm

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.
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby FlyingSaucrDude » Sun Oct 28, 2007 10:52 pm

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? :D

I don't blame you if you don't...but then I'd know whether it's me/my setup or not.
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby jigsaw » Sun Oct 28, 2007 10:58 pm

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? :D

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?
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby FlyingSaucrDude » Sun Oct 28, 2007 11:00 pm

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.
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby jigsaw » Sun Oct 28, 2007 11:04 pm

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
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby FlyingSaucrDude » Sun Oct 28, 2007 11:06 pm

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! :-)
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby jigsaw » Sun Oct 28, 2007 11:09 pm

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 :)
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby FlyingSaucrDude » Tue Oct 30, 2007 8:11 pm

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...
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby sindre_mehus » Tue Oct 30, 2007 9:24 pm

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
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby FlyingSaucrDude » Tue Oct 30, 2007 11:13 pm

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...
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby jigsaw » Tue Oct 30, 2007 11:53 pm

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..
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 14 guests