Django ошибка при loaddata UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Сделал дамп файлы в приложении джанго чтобы посмотреть и скинуть бдшку. В итоге ругается на кодировку:
PS C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\app> python .\manage.py loaddata .\fixtures\goods\cats.json
Traceback (most recent call last):
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\app\manage.py", line 20, in <module>
main()
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\app\manage.py", line 16, in main
execute_from_command_line(sys.argv)
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\venv\Lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line
utility.execute()
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\venv\Lib\site-packages\django\core\management\__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\venv\Lib\site-packages\django\core\management\base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\venv\Lib\site-packages\django\core\management\base.py", line 458, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\venv\Lib\site-packages\django\core\management\commands\loaddata.py", line 102, in handle
self.loaddata(fixture_labels)
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\venv\Lib\site-packages\django\core\management\commands\loaddata.py", line 163, in loaddata
self.load_label(fixture_label)
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\venv\Lib\site-packages\django\core\management\commands\loaddata.py", line 251, in load_label
for obj in objects:
File "C:\Users\Mugiwara\Desktop\pythooooon\okna_shop_galimov\venv\Lib\site-packages\django\core\serializers\json.py", line 67, in Deserializer
stream_or_string = stream_or_string.decode()
^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte