Bug 9657 - CLI commands favorites/playlists returns wrong international chars
: CLI commands favorites/playlists returns wrong international chars
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: CLI
: 7.4.0
: PC Windows XP
: -- normal (vote)
: 7.4.0
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-04 11:20 UTC by koelec
Modified: 2009-10-05 14:36 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 koelec 2008-10-04 11:20:53 UTC
The favorites and playlists CLI commands return wrong encoded international characters.
I have a playlist names: nëw.
It show ok on the squeezecenter web interface.
If I use the CLI to retrieve the playlists, the following is returned:
3f%3Ad6%3Aa2%3A0c%3A11%3A0b playlists 0 256 id%3A39 playlist%3An%C3%83%C2%ABw count%3A1 ....

The playlist tag value returned here is: n%C3%83%C2%ABw
It should have been this: n%C3%ABw
The unicode/utf8 sequence for ë is: C3AB and not C383C2AB.

So where does the %83%C2 come from? I see this inserted everywhere a 2 byte UTF8 character is expected.

This used to work properly in SC 6.5 (and 7.0 ?).

You can reproduce this by creating a playlist with name with one or more accented characters on the web interface. Then open up a telnet session to localhost:9090
and issue the command: playlists 0 256
Comment 1 Spies Steven 2008-10-13 15:45:30 UTC
I see the same thing that koelec reported.

Felix, is this something you would look at?
Comment 2 Felix Mueller 2008-10-14 00:42:31 UTC
I believe you meant Michael or Andy, didn't you?
Comment 3 Michael Herger 2008-10-14 06:26:58 UTC
probably related to the issue Barry is seeing in bug 8585
Comment 4 Michael Herger 2008-11-04 03:45:04 UTC
Please give the latest 7.3/r23806 another try. I've checked in a few changes which might cover your issues.
Comment 5 koelec 2008-11-05 00:09:37 UTC
(In reply to comment #4)
> Please give the latest 7.3/r23806 another try. I've checked in a few changes
> which might cover your issues.
> 
Don't see r23806. Did try r23805 with issue not resolved.
With the name 'pläylist' being shown in the browser the CLI returns this as part of a playlists command:
playlist%3Apl%C3%83%C2%A4ylist
should have been:
playlist%3Apl%C3%A4ylist
Comment 6 Michael Herger 2008-11-05 00:18:05 UTC
> Don't see r23806. Did try r23805 with issue not resolved.

That's why I said 23806 :-). It'll be available in a few hours.
Comment 7 Michael Herger 2008-11-05 01:31:16 UTC
Fixed in the change mentioned:

favorites items 0 10
favorites items 0 10 title%3AFavoriten id%3A0 name%3AZuf%C3%A4llige%20Titel type%3Aaudio isaudio%3A1 hasitems%3A0 id%3A1 name%3AZuf%C3%A4llige%20Alben type%3Aaudio isaudio%3A1 hasitems%3A0 count%3A2

(this is "Zufällige Titel" and "Zufällige Alben")

Feel free to re-open if it still doesn't work for you. Thanks!
Comment 8 James Richardson 2009-10-05 14:36:46 UTC
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server!
    * SqueezeCenter: 28672
    * Squeezebox 2 and 3: 130
    * Transporter: 80
    * Receiver: 65
    * Boom: 50
    * Controller: 7790
    * Radio: 7790  

Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes

If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.