Bug 9430 - Browse Music Folder doesn't decode UTF8 characters on the controller
: Browse Music Folder doesn't decode UTF8 characters on the controller
Status: CLOSED FIXED
Product: SB Controller
Classification: Unclassified
Component: Browser
: unspecified
: PC Linux (other)
: P1 normal (vote)
: 7.2.1
Assigned To: Squeezebox QA Team email alias
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-07 09:53 UTC by Markus Schiegl
Modified: 2011-03-16 04:39 UTC (History)
4 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Schiegl 2008-09-07 09:53:03 UTC
Another problem from the world of charset...

I'm running a UTF-8 only system on linux. Generally i have no problems with non-ascii characters. The same applies to the controller but i've just found out, that Music Library->Music Folder doesn't decode directories & files containing such characters.

It looks like the usual "didn't decode utf8" issue, i.e "ä" is displayed as "Ãx". SC has no problem.

version: SC 7.3r23081, SBC 7.3r2909
Comment 1 Michael Herger 2008-09-07 11:34:10 UTC
What does Settings/Status say about your system? What locale are you using? Would adding/removing the --charset=utf8 parameter change the behaviour?
Comment 2 Markus Schiegl 2008-09-07 11:43:07 UTC
It shows "Linux - EN - utf8". Unfortunately i'm away from the controller now, so i can't test --charset=utf8.

But as i said, BMF with SC and the Player UI work just fine. All other menus (Album, Artist, New Music, etc.) on the SBC are working well. It's just BMF on the controller...
Comment 3 Markus Schiegl 2008-09-08 09:43:26 UTC
(In reply to comment #1)

> Would adding/removing the --charset=utf8 parameter change the behaviour?
there's no change depending on this parameter.

kind regards,
Markus
Comment 4 James Richardson 2008-09-10 13:05:33 UTC
Markus: what language did you select for SC/SN and on your Controller?
Comment 5 Markus Schiegl 2008-09-10 13:10:23 UTC
it's english - on SC & SBC.
Do you want me to take any traces/logs?
Comment 6 Markus Schiegl 2008-09-14 08:28:22 UTC
I've captured and compared the SC<->controller network communication between "artist listing" and "music folder listing". It looks like the data comming from the Squeezecenter in case of "music folder listing" is not encoded to utf8 properly.

artist listing (works fine)
...
{"params": "textkey":"A","artist_id":7,"favorites_url":"db:contributor.namesearch=ALIZ%C3%89E","favorites_title":"Alizée"}
...

music folder listing (SBC displays: Alizé)
...
{"params":{"textkey":"A","folder_id":6732},"text":"Alizé"}
...

problems seems to need a fix on the server side...
Comment 7 Michael Herger 2008-09-15 04:28:15 UTC
change 23180 - in musicfolder query we need utf8 decode file/folder names before returning them
Comment 8 Markus Schiegl 2008-09-19 11:18:23 UTC
thanks! looks good now. one more coding/charset bug squashed... ;)
Comment 9 James Richardson 2008-10-02 11:36:45 UTC
*** Bug 9632 has been marked as a duplicate of this bug. ***
Comment 10 James Richardson 2008-10-02 11:37:33 UTC
From BUG 9632
===============
The bug #9430 (error in non latin directory/file name displayed on controller)
also appear in version 7.2.1.  It is pretty annoying when browsing music by
folder (see https://bugs-archive.lyrion.org/show_bug.cgi?id=9488#c11).

The same correction as applied to 7.3
(http://svn.slimdevices.com/?view=rev&revision=23180) works for me on 7.2.1.

Could it be fixed officially on the 7.2 branch.
Comment 11 James Richardson 2008-10-02 11:41:38 UTC
Bill, please try 7.2.1-23353 (nightly) or later.  Let us know if that version still has the same issues.
Comment 12 Michael Herger 2008-10-02 12:51:03 UTC
I already did so earlier today, but didn't note here. Change 23378
Comment 13 bitli 2008-10-04 12:27:37 UTC
Works fine for me, no, in version 23384. Thank you very much for the prompt action.
However the same issue of character set appear in the status of the progress of scanning the folder.  I'll open a separate bug for ease of tracking, although this is minor.



   


Comment 14 James Richardson 2008-10-14 14:03:27 UTC
Verified fixed in

SqueezeCenter 7.2.1-23555
Controller 7.2 r3080
Comment 15 James Richardson 2008-12-15 12:40:27 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 16 bitli 2008-12-23 07:11:45 UTC
I did a full scan with the latest version (7.3.2 24401) and I have seen no error on the status page (only some titles are shown during the scan, so this is not an final test, but at least it looks good). Thanks