sitemule / noxDB

Not only XML. SQL,JSON and XML made easy for IBM i
MIT License
41 stars 20 forks source link

Parsing incomplete unicode sequence results in garbage character #43

Open m1h43l opened 3 years ago

m1h43l commented 3 years ago

If a unicode sequence is incomplete the character will be included/parsed as a best as possible. But it will always be not correct no matter what is assumed. Either document this or let the parse fail.

Note: jx_error didn't return an error.

Unit test NOXDBUT1 test case TEST_INCOMPLETE_UNICODE_SEQUENCE. Test file: unittests/data/parser/test21-incomplete-unicode-sequence.json