json and escaping utf-8 characters #16497
Unanswered
PokerMakyo
asked this question in
Libraries & Drivers
Replies: 1 comment 1 reply
-
While I have no idea what's wrong with the micropython request, your python3 dump shows the complete escape sequence including the backslash. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I see that micropython json library handles utf-8 characters differently than python3 does. I'm trying to send a request with some json data containing non-ascii characters:
The request generated by python3 contains:
while micropython generates:
Is there a way to force micropython to escape utf-8 characters like python3 does? Do I need to write my own escaping function?
Looks like this is related to: #4397
Beta Was this translation helpful? Give feedback.
All reactions