[GH-ISSUE #369] Display remains white when I use % as a character #2429

Closed
opened 2026-03-20 21:06:29 +01:00 by sascha_hemi · 1 comment
Owner

Originally created by @gitpower2017 on GitHub (Sep 5, 2024).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/369

Hello.

As soon as I want to send the character % as json.
e.g. 55% humidity. The display remains blank.

Must a >> % << be specially protected.

Originally created by @gitpower2017 on GitHub (Sep 5, 2024). Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/369 Hello. As soon as I want to send the character % as json. e.g. 55% humidity. The display remains blank. Must a >> % << be specially protected.
Author
Owner

@nlimper commented on GitHub (Sep 5, 2024):

For the json string, the normal encoding applies (like " -> \"). But on top of that: how do you send the json to the AP? If you craft your own HTTP POST call, note that you have to use the proper escape sequences for the POST parameters. In application/x-www-form-urlencoded content, that's the percent encoding: https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding.
If that's not your situation, please provide an example, and describe how to reproduce.

<!-- gh-comment-id:2332334301 --> @nlimper commented on GitHub (Sep 5, 2024): For the json string, the normal encoding applies (like `"` -> `\"`). But on top of that: how do you send the json to the AP? If you craft your own HTTP POST call, note that you have to use the proper escape sequences for the POST parameters. In `application/x-www-form-urlencoded` content, that's the percent encoding: https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding. If that's not your situation, please provide an example, and describe how to reproduce.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#2429