2010-12-03, 13:30
blinkseb Wrote:Hm, you're right, string depends on xbmc encoding. Two solutions :
* pass all strings as utf-8 / utf-16
* let strings encoding as it is, but add a json System.GetStringEncoding method
I like solution #1 best, but what about sending the Content-Encoding in the HTTP response? That would keep the encoding information in the same channel as the data. It would make sense since JSON-RPC is a HTTP-based protocol.
Also, if XBMC keeps strings encoded in the selected encoding, must the JSON-RPC method parameters be in this encoding aswell?