Skip to content

Using parse_json with unicode in message #12131

Answered by fpytloun
fpytloun asked this question in Q&A
Discussion options

You must be logged in to vote

This seems to be the solution 🤔

      msg_parsed, err = parse_json(replace(.message, r'([^\x00-\x7F])', "\\\\$$1") ?? .message)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@jszwedko
Comment options

@pablosichert
Comment options

Answer selected by jszwedko
Comment options

You must be logged in to vote
1 reply
@fpytloun
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants