Iñigo wrote: 
> 
> I've found a problem when making requests passing UTF-8 encoded data,
> the `url-retrieve` library in emacs does not accept multibyte
> parameters.
> Is there a way to indicate LMS HTTP server that data is hexifyed and it
> needs to unhex before handling? f.e. using any special header in the
> request or something?
> 
I doubt it - the JSON format doesn't support this.
But couldn't you just escape it? This works for me:


Code:
--------------------
    
  $ curl -H "Content-Type: application/json" -X POST -d 
'{"id":1,"method":"slim.request","params":["-", ["search", 0, 
10,"term:bj\u00f6rk"]]}' "http://odroidhc2:9000/jsonrpc.js";
  
{"result":{"contributors_loop":[{"contributor":"Björk","contributor_id":1665},{"contributor_id":1666,"contributor":"Björk
 Guðmundsdóttir & Tríó Gu"},{"contributor_id":3052,"contributor":"Maggie 
Bjorklund"}],"count":6,"contributors_count":3,"tracks_loop":[{"track_id":78532,"track":"Bjork
 - All Is Full Of Love"},{"track":"PJ + Vincent & Matthew + 
Bjork","track_id":80937}],"albums_count":1,"albums_loop":[{"album":"Björk 12\" 
Demo","album_id":3457}],"tracks_count":2},"method":"slim.request","id":1,"params":["-",["search","0",10,"term:björk"]]}
  
--------------------



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112400

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to