-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in decode unicode #1173
Comments
Hi @fvanroie, Thank you very much for this accurate bug report. Best regards, |
Hello @bblanchon No problem at all, you're welcome. In fact, thank you for the quick resolution and for providing an indispensable library. I tested 6.14.1 and it is working correctly now! Merci beaucoup, |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem Description
I am using the
ARDUINOJSON_DECODE_UNICODE=1
compiler flag to enable the decode unicode feature of ArduinoJson.After upgrading to version 6.14.0 of the library, unicode characters read from a json lines file are not decoded properly anymore. There seems to be a shift of 0x1000 in the decoded character codepoint.
Switching back to version 6.13.0 solves the problem.
Target Platform
ESP8266 & ESP32
Compiler model and version
platformio.ini configuration file:
Minimal, Complete and Verifiable Example
Contents of input file
/pages.jsonl
uploaded to SPIFFS:Result
Test 1 Using version 6.13.0
Result:
Test 2 Using version 6.14.0
Result:
Conclusion
The decoded unicode characters
\uF053
\uF015
\uF054
are shifted by 0x1000:EF 80 95
EF 81 94
\uF015
\uF054
F0 90 80 95
F0 90 81 94
\u10015
\u10054
The text was updated successfully, but these errors were encountered: