Bug 8897 - Accents in File name.
: Accents in File name.
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Tagging
: 7.1
: PC Windows XP
: P3 normal (vote)
: 7.x
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-28 14:26 UTC by Anoop Mehta
Modified: 2009-07-31 10:25 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anoop Mehta 2008-07-28 14:26:10 UTC
Hello

I have encountered a problem with SqueezeCenter Version 7.0.1 associated with the use of unorthodox characters in the file name. This problem did not occur in Slim Server 6.5.4,

I have two files in my music folder

"C:\mp3\Bartok - Hungarian Sketches Sz97 - Philharmonia - Neeme Jarvi.mp3"
"C:\mp3\Bartók - Hungarian Sketches Sz97 - Philharmonia - Neeme Järvi.mp3"

Note the second file name has two accented characters - ó in  Bartók and ä in Järvi - I hope they get transmitted through the e-mail system!.

Both these files play perfectly when selected in the SqueezeCenter player I see in the browser.

However, I prefer to play my MP3 files using the SqueezeCenter Web interface, sending the commands using wget.

When I do this, the file name WITHOUT the accents plays ok, but the file name WITH accents does not play at all.

I have uninstalled 7.0.1, reverted to 6.5.4, and confirmed that this problem does NOT occur using exactly the same gwet commands with SlimServer 6.5.4. Both files, with and without accents play perfectly.

I have examined other files, and any file name with an accent has this problem.

Something must have changed with the web interface between 6.5.4 and 7.0.1. Are you aware of anything?

I am using Windows XP Pro. 

Thanks in advance for any guidance you may be able to provide. I would prefer not to have to remove accents from all my file names!!
Comment 1 Michael Herger 2008-07-29 01:31:23 UTC
Could you please post the exact url you're using? Are you sending from a non-Windows platform to a Windows server? Please note that you probably have to url encode filenames. 

BTW: "Accents in File name" is not a bug, but a feature ;-).
Comment 2 James Richardson 2008-07-29 11:20:31 UTC
Anoop: Can you add the RightNow ticket number or CC the customer on this bug.
Comment 3 Anoop Mehta 2008-07-29 13:41:03 UTC
RightNow ticket # 080723-001201
Comment 4 malone 2008-07-29 16:57:56 UTC
Here is the second message I sent to Anoop which I think answers your question about the exact url

All you need to do is take a couple of mp3 files; rename one to:
 
"Bartók - Hungarian Sketches Sz97 - Philharmonia - Neeme Järvi.mp3" 
 
and the other  to:

"Bartok - Hungarian Sketches Sz97 - Philharmonia - Neeme Jarvi.mp3" 
 
(ie replace the accented characters with unaccented characters)
 
Now put the following in the address bar of your browser (the command corresponding to the with-accent name). You'll need to change the IP address to that of your SqueezeCenter; mine is 10.1.1.15; the location of your MP3 files; mine are in C:\mp3\ and your authorisation code.
 
http://10.1.1.15:9000/status.txt?p0=playlist&p1=play&p2=C:\mp3\Bartók - Hungarian Sketches Sz97 - Philharmonia - Neeme Järvi.mp3&;cauth=b8ebfc4f81470c34062239b7539ad6f7
 
(Note, you'll need to be careful that any wordwrap introduced by our e-mail link doesn't introduce a line break anywhere in this long URL)
 
My experience is that this file plays with 6.5.4, but not with 7.0.1
 
Now put the following in the address bar of your browser (the command corresponding to the file name with unaccented characters). You'll need to make the IP address and mp3 location changes etc again.
 
http://10.1.1.15:9000/status.txt?p0=playlist&p1=play&p2=C:\mp3\Bartok - Hungarian Sketches Sz97 - Philharmonia - Neeme Jarvi.mp3&;cauth=b8ebfc4f81470c34062239b7539ad6f7
 
I find this file plays with both 6.5.4 and 7.0.1.
 
Thus I conclude that something has changed in 7.0.1 to prevent file names containing accented characters from playing when using the web interface.
 
I've tried this with both IE7 and Firefox 3 on Windows XP Pro and Vista Ultimate.
 
What do you think?
Comment 5 malone 2008-07-29 18:01:14 UTC
And with respect to your comment about url encoding the filename a couple of points - 

first, I haven't found it necessary to url encode for 6.5.4 and 

second, I have tried url encoding. File names without accents work with 7.0.1 whether I url encode or not. File names with accents however, don't work whether I url encode or not.
Comment 6 Michael Herger 2008-07-29 21:56:44 UTC
Are you running everything on Windows (app and client)?

Haven't run any tests yet. Just another data point.
Comment 7 malone 2008-07-29 22:26:13 UTC
Yes, everything is on Windows. I have had the applications SqueezeCenter 7.0.1 and Slim Server 6.5.3 each on three different Windows computers - Windows XP Home, Windows XP Pro and Vista Ultimate. Browsing from the same or another networked computer using IE6, IE7, Firefox2 and Firefox 3. Although I probably haven't tried all conceivable combinations, I think I have done enough to convince myself that this effect is consistent - or I am making the same mistake with all of them!
Comment 8 Michael Herger 2008-07-31 07:37:16 UTC
change 22266 - fix encoding of p0-p* parameters on Windows

malone - please note that the "status.txt?p0..." style interface is deprecated. You should consider moving to the JSON/RPC interface.
Comment 9 malone 2008-07-31 12:31:19 UTC
That's the first I've heard of the web interface being deprecated. Yes, I have considered using JSON/RPC but after not being able to find an appropriate tutorial on the web and reluctant to negotiate the learning curve (I'm not a professional programmer), I decided to stay with the web interface which works so well for me in 6.5.4. Are you now saying that I shouldn't be using the web interface with 7.0.1?
Comment 10 Michael Herger 2008-07-31 13:39:01 UTC
> Are you now saying that I shouldn't be using the web interface with 7.0.1?

I'm saying that I've (hopefully!) fixed the issue today (7.1.1+ only - sorry!). Thus you have another grace period ;-).

Comment 11 malone 2008-08-01 20:01:56 UTC
Thanks for that - I couldn't find the 7.1.1. you referred to, so I downloaded SqueezeCenter-7.2-22272 and it doesn't play file names with accents using the web interface. 

I've spent enough time on this now so I think I'll stick with 6.5.4 which works well for me.


Comment 12 Michael Herger 2008-08-05 00:58:50 UTC
I'm sorry, checked the change in to the wrong branch. 

Backported it in change 22375 to 7.1.1. Please give it a try.
Comment 13 James Richardson 2008-12-15 12:05:39 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 14 Chris Owens 2009-07-31 10:25:50 UTC
Reduce number of active targets for SC