I use this piece of code to convert a .csv file content to a .json file:
import csv
import json
with open('export.csv', encoding='utf-8') as f:
reader = csv.DictReader(f)
rows = list(reader)
with open('test.json', 'w', encoding='utf-8') as f:
json.dump(rows, f)
The conversion is successful, but Arabic characters in .csv file convert to something like this in .json file:
"\u06a9\u0627"
How can I solve this?