in reply to Re^3: JSON character encoding
in thread JSON character encoding

What are you talking about? If the JSON standard dictates a set of encodings and you violate that standard, the file you produce is no longer JSON ... by definition. If it's not UTF, it's not JSON and arguments to the contrary are a waste of time.

Replies are listed 'Best First'.
Re^5: JSON character encoding
by RonW (Parson) on May 31, 2017 at 22:42 UTC

    The text of the JSON must be encoded as UTF-8, UTF-16 or UTF-32.

    The data represented by the JSON text, however, may be further encoded in other ways.

    For example, in JSON, a sequence of bytes could be represented as an array of numbers, a string of hexadecimal digits, or something else. What those bytes mean to the sending and receiving applications must be agreed upon outside of JSON.

    That said, the JSON specification requires that string values in JSON must be in Unicode, possibly using escape sequences. (Which are \u followed by 4 hexadecimal digits. for example, "\u005C" is a \)