cl-json icon indicating copy to clipboard operation
cl-json copied to clipboard

Fix encoding and decoding of non-BMP characters

Open chaitanyagupta opened this issue 6 years ago • 1 comments

This PR corrects handling of unicode characters not in the basic multilingual plane. The JSON spec requires these to be split into surrogate pairs.

chaitanyagupta avatar Nov 17 '18 16:11 chaitanyagupta

Just noticed that there are two other PRs which implement the encoding bit. This one, however, is the only one that does both encoding and decoding, and also includes tests.

chaitanyagupta avatar Nov 17 '18 18:11 chaitanyagupta