3 ms·
Except not really. Under what circumstances are surrogates allowed? Under what circumstances are controls allowed?
by o11c 3y ago
Except not really. Under what circumstances are surrogates allowed? Under what circumstances are controls allowed?
- stkdump 3y ago>8.1. Character Encoding > JSON text exchanged between systems that are not part of a closed ecosystem MUST be encoded using UTF-8 [1]. I don't know what you mean by controls (you mean unicode control characters, for which the spec explicitly states that they are to be escaped?), but since JSON should really only be exchanged as UTF-8, surrogate pairs play no role. [1] https://www.rfc-editor.org/rfc/rfc8259 https://www.rfc-editor.org/rfc/rfc8259