O
O
Ornitier2022-04-21 19:16:27
Python
Ornitier, 2022-04-21 19:16:27

How to decode all unicode when importing dictionary to json file?

I parsed the data from the site and it turned out to be encoded in unicode. Can I somehow decode this unicode before importing all the data into a JSON file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Nesterov, 2022-04-21
@AlexNest

At what stage does unicode appear?
After using json.dump/dumps?
Then add as a parameter. ensure_ascii=False

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question