0

UTF Support

FAQ - This post is taken from a list of the most frequently asked questions during the pre-release of the WDK

I want to know if it is ok to use UTF-16 for text in the JSON data? All the apps I looked at appeared to be using UTF-8
I was unable to locate any restrictions or recommendations in the WDK docs.

by
2 Replies
  • UTF-16 is not officially supported, but theoretically it should work because Javascript is UTF-16 internally. Saving the files in UTF-16 would likely break (but this shouldn’t affect you), but JSON.parse() probably correctly handles it, especially if the stream you use has the byte order mark (BOM) correctly specified at the beginning of the data.

    Please test it, if it works, you are good, if not, let us know as I would like to communicate to others that it isn't supported.
    0
  • If you find any of this FAQ confusing or have additional questions, please open a new post with your specific question.
    0

Recent Posts

in General - Yahoo! TV Widgets