panhaoyu / django-dump-load-utf8

MIT License
22 stars 0 forks source link

There is another solution for Python3.7+ #1

Open mycollectingbox opened 2 years ago

mycollectingbox commented 2 years ago

I think use the command line below will solve the problem, so this package is unnecessary python -Xutf8 manage.py dumpdata > data.json

When using -Xutf8 option, Python uses UTF-8 as default encoding for text files instead of system encoding.

Esatyilmaz0 commented 2 years ago

Hi, i tested your solution but i have utf-8 error.

NingWest commented 1 year ago

python -Xutf8 manage.py dumpdata > data.json kept giving me problems with chinese chars. This tool solved the problem, thanks.

Davon-Rolage commented 1 year ago

python -Xutf8 manage.py dumpdata > data.json kept giving me problems with chinese chars. This tool solved the problem, thanks.

Same goes with Georgian characters, but this repo totally solved it.

panhaoyu commented 7 months ago

Glad that my code can help you all xD

GreatTusk commented 5 months ago

python -Xutf8 manage.py dumpdata > data.json kept giving me problems with chinese chars. This tool solved the problem, thanks.

Same goes with Georgian characters, but this repo totally solved it.

And here with Spanish characters. This repo is a life saver, thank you panhaoyu