Bug 2788 - CLI returns incorrect UTF-8 string
: CLI returns incorrect UTF-8 string
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: CLI
: 6.2.2
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-06 07:45 UTC by Malcolm Green
Modified: 2006-02-16 10:19 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malcolm Green 2006-01-06 07:45:26 UTC
I have a test MP3 file with title, artist and album tags each containing the text:

Test ��

This displays correctly on the Squeezebox and the web interface, but the CLI returns the following in the appropriate tag returned in response to songinfo or status commands:

Test%20%C3%83%C2%84%C3%83%C2%9F

When unescaped and transformed to a UTF-8 string, this does not yield the correct result.
Comment 1 Michael Herger 2006-01-07 01:17:05 UTC
I can't add a lot of information. But I wanted to add an observation which might be related: as I also have problems with non-latin characters and the CLI I tried using the charset parameter. But I have the impression that it doesn't change anything whether I use "charset:utf8" or "charset:iso-8859-1" - the resulting string always looks the same.

I've tested this on both Windows XP and Linux, with 6.2.2 and 6.5.
Comment 2 Fred 2006-01-10 17:04:34 UTC
Fixed in SVN 5606. The title of track_id 245 is the one given by Malcolm:

songinfo 1 1 track_id:245
songinfo 1 1 track_id%3A245 count%3A18 title%3ATest%20%C3%84%C3%9F
songinfo 1 1 track_id:245 charset:cp437
songinfo 1 1 track_id%3A245 charset%3Acp437 count%3A18 title%3ATest%20%8E%E1
songinfo 1 1 track_id:245 charset:iso-8859-1
songinfo 1 1 track_id%3A245 charset%3Aiso-8859-1 count%3A18 title%3ATest%20%C4%DF
Comment 3 Michael Herger 2006-01-11 01:27:01 UTC
Thanks Fred, does fix my issue!
Comment 4 KDF 2006-01-11 08:39:52 UTC
marking as fixed then.  please re-open if any issues remain.
Comment 5 KDF 2006-02-16 10:19:58 UTC
*** Bug 3012 has been marked as a duplicate of this bug. ***