panhaoyu / django-dump-load-utf8

MIT License
21 stars 0 forks source link

There is another solution for Python3.7+ #1

Open mycollectingbox opened 1 year ago

mycollectingbox commented 1 year 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 1 year 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 8 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.

panhaoyu commented 2 months ago

Glad that my code can help you all xD

GreatTusk commented 5 days 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