2010-12-03, 13:04
pilophae Wrote:I'm trying to write a simple MPD gateway using the JSON-RPC API, but hit a snag when receiving filenames encoded in UTF-8 on the filesystem where XBMC resides. My XBMC instance is setup to use the encoding Western Europe (why is there no Unicode alternative?) and I found that the data sent via JSON-RPC could indeed be decoded with the cp850 encoding.
My question is, will this encoding change when I change the XBMC encoding, and can this be reflected with a 'Content-Encoding' header in the HTTP response in that case?
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
Let's wait for topfs2 answer.