I've done a bit of debugging. I put this lines into the date being
retuned from AlienBBC getMetadataFor routine.
title => "Test title with 37°2 degree",
With various logging turned on. The write response has the correct
"title" with hex code for the degree chartacter.
Code:
--------------------
[08-04-18 15:49:13.4805] Slim::Web::JSONRPC::writeResponse (224) JSON
response: {
id => 1,
method => "slim.request",
params => ["00:04:20:06:4a:9a", ["status", "-", 1, "tags:uB"]],
result => {
# tied Tie::IxHash
current_title => undef,
"mixer volume" => 60,
mode => "pause",
player_connected => 1,
player_name => "Silver",
"playlist repeat" => 2,
"playlist shuffle" => 0,
playlist_cur_index => 0,
playlist_loop => [
{
# tied Tie::IxHash
buttons => {
repeat => {
command => ["rtsp", "skip", -1],
icon => "html/images/rtsp_skip_rew.gif",
tooltip => "Skip Back in Stream",
},
shuffle => {
command => ["rtsp", "skip", 1],
icon => "html/images/rtsp_skip_fwd.gif",
tooltip => "Skip Forwards in Stream",
},
},
id => 2437,
"playlist index" => 0,
title => "Test title with 37\xC2\xB02 degree",
url =>
"rtsp://rmv8.bbc.net.uk/radio4/science/sci9_tue_20071218.ra?BBC-UID=7468f0189a2f3eeda7c1960dd000dcb0dede58eb8040f164640f1871dfcb6605&SSO2-UID=",
},
],
playlist_timestamp => "1208528854.6957",
playlist_tracks => 1,
power => 1,
rate => 1,
remote => 1,
signalstrength => 0,
"time" => 18,
},
}
--------------------
However by the time it is written out - the degree has been changed
into 2 chars: Acirc and degree.
Code:
--------------------
[08-04-18 15:49:13.4822] Slim::Web::JSONRPC::writeResponse (237) JSON raw
response: [
{
"params":["00:04:20:06:4a:9a",["status","-","1","tags:uB"]],
"method":"slim.request",
"id":"1",
"result"
{"player_name":"Silver",
"player_connected":1,
"power":1,
"signalstrength":0,
"mode":"pause",
"remote":1,
"current_title":null,
"time":18,
"rate":1,
"mixer volume":60,
"playlist repeat":2,
"playlistshuffle":0,
"playlist_cur_index":"0",
"playlist_timestamp":1208528854.6957,
"playlist_tracks":1,
"playlist_loop":[{
"playlist index":0,
"id":"2437",
"title":"Test title with 37°2 degree",
"url":"rtsp://rmv8.bbc.net.uk/radio4/science/sci9_tue_20071218.ra?BBC-UID=7468f0189a2f3eeda7c1960dd000dcb0dede58eb8040f164640f1871dfcb6605&SSO2-UID=","buttons":
{"shuffle":{
"tooltip":"Skip Forwards in Stream",
"icon":"html/images/rtsp_skip_fwd.gif",
"command":["rtsp","skip","1"]
},
"repeat":{"tooltip":"Skip Back in Stream",
"icon":"html/images/rtsp_skip_rew.gif","command":
["rtsp","skip","-1"]
}}}]}}]
--------------------
Shall I log this as a bug ?
--
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=46422
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta