Can anyone help me with some arcane issues concerning character encoding of CLI commands?
I am trying to pass a Norwegian string "Engegårdkvartetten" into a CLI command. According to my research this should be encoded as "Engeg%C3%A5rdkvartetten". However when I send that to the CLI, the response echo appears as "Engeg%C3%83%C2%A5rdkvartetten" as you can see below.Can anyone please tell me what is going on and how to fix it?Code:**** 19:10:45.648 CLI Request v2.2.1.2154 **** 00%3A04%3A20%3A10%3A0a%3A24 playlist add http%3A%2F%2F192.168.1.31%3A31416%2Fplay.flc%3Fhttp%3A%2F%2F192.168.1.31%3A52100%2FMusic%2FF32893.wav 4.%20wav-16-44100%20-%20Engeg%C3%A5rdkvartetten%20-%20STRING%20QUARTETS **** 19:10:45.655 CLI Response v2.2.1.2154 **** 00%3A04%3A20%3A10%3A0a%3A24 playlist add http%3A%2F%2F192.168.1.31%3A31416%2Fplay.flc%3Fhttp%3A%2F%2F192.168.1.31%3A52100%2FMusic%2FF32893.wav 4.%20wav-16-44100%20-%20Engeg%C3%83%C2%A5rdkvartetten%20-%20STRING%20QUARTETS
Results 1 to 4 of 4
Thread: Arcane CLI encoding issue
-
2011-11-17, 11:30 #1
Arcane CLI encoding issue
Regards,
AndrewFG
Try out Whitebear. The middleware that joins the two worlds of:
1. UPnP/DLNA media clients and media players, and,
2. Squeezebox Server and Squeeze Players
Download it for free here: http://www.whitebear.ch/mediaserver
-
2011-11-18, 05:46 #2
I found the following interesting article.
http://mark.stosberg.com/blog/2010/1...s-in-perl.html
http://mark.stosberg.com/blog/2010/1...ding.html#more
Can anyone please tell me which of these cited escaping mechanism are actually used by the CLI? A comparison with the CLI response echo seems to indicate "none of the above"...Last edited by AndrewFG; 2011-11-18 at 05:50.
Regards,
AndrewFG
Try out Whitebear. The middleware that joins the two worlds of:
1. UPnP/DLNA media clients and media players, and,
2. Squeezebox Server and Squeeze Players
Download it for free here: http://www.whitebear.ch/mediaserver
-
2011-11-18, 14:30 #3
After further testing, I believe that the CLI requests shall NOT be encoded in UTF-8 (as is stated in the documentation) but rather shall be encoded in ANSI in the Active Code Page.
On the other hand, it seems that the CLI responses are indeed properly encoded in UTF-8
Thus the following command request encoded in ANSI on the ACP:will return the following response which is properly encoded in UTF-8Code:aardvark Engegårdkvartetten
That seems at least to work for my Norwegian text; however (not having a Japanese, Chinese, Arabic, etc. computer) I have no way of testing if this applies generally to all languages / code pages.Code:aardvark Engeg%C3%A5rdkvartetten
=> I think this is a bug in the CLI.Regards,
AndrewFG
Try out Whitebear. The middleware that joins the two worlds of:
1. UPnP/DLNA media clients and media players, and,
2. Squeezebox Server and Squeeze Players
Download it for free here: http://www.whitebear.ch/mediaserver
-
2011-11-23, 03:59 #4Regards,
AndrewFG
Try out Whitebear. The middleware that joins the two worlds of:
1. UPnP/DLNA media clients and media players, and,
2. Squeezebox Server and Squeeze Players
Download it for free here: http://www.whitebear.ch/mediaserver

Reply With Quote

