▲ | sedatk 4 days ago | ||||||||||||||||
> For example, how do you handle UTF-8 encoded surrogate pairs? Surrogate pairs aren’t applicable to UTF-8. That part of Unicode block is just invalid for UTF-8 and should be treated as such (parsing error or as invalid characters etc). | |||||||||||||||||
▲ | gritzko 4 days ago | parent [-] | ||||||||||||||||
In theory, yes. In practice, there are throngs of parsers and converters who might handle such cases differently. https://seriot.ch/projects/parsing_json.html | |||||||||||||||||
|