Descriptive Problem Summary:
Unicode/UTF-8 characters put into json_encode will not be properly escaped.
If the same characters are piped into world.log, they'll display (mostly) correctly in Dream Daemon.
Numbered Steps to Reproduce Problem:
1. Put unicode into json_encode
2. See output
3. Compare to, say, CyberChef's Unicode Escaper: https://gchq.github.io/CyberChef/
Code Snippet (if applicable) to Reproduce Problem:
(it's on pastebin because the forum auto-escapes the unicode) https://pastebin.com/6TRzZdea
Does the problem occur:
Every time? Or how often? Every time.
In other games? It's game-independent
When does the problem NOT occur? If I just put normal ASCII into json_encode/decode
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? It didn't occur in previous versions, because previous versions didn't have UTF-8/Unicode support at all.
Don't use Unicode in json_encode/decode
Oct 21 2019, 3:22 pm (Edited on Oct 21 2019, 3:28 pm)