I'm new to Django so I need some help. I needed to create fixtures and did it with this command
python manage.py dumpdata products.ProductCategory > category.json
Then I got this
{
"model": "products.productcategory",
"pk": 1,
"fields": {
"name": "╬фхцфр",
"description": "╬яшёрэшх юфхцф√"
}
}
And when I try to loaddata Django gives me an error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Are there any ways to encode this JSON or dump data correctly?
I searched in the documentation, but unfortunately I did not find anything worthwhile