Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is another solution for Python3.7+ #1

Open
mycollectingbox opened this issue Sep 7, 2022 · 5 comments
Open

There is another solution for Python3.7+ #1

mycollectingbox opened this issue Sep 7, 2022 · 5 comments

Comments

@mycollectingbox
Copy link

mycollectingbox commented Sep 7, 2022

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
Copy link

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

@NingWest
Copy link

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

@Davon-Rolage
Copy link

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
Copy link
Owner

Glad that my code can help you all xD

@GreatTusk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants