After I run python manage.py dumpdata -o mydata.json,The generated JSON file contains garbled Chinese characters
postgresql + Django 4.2
I think the first thing I’d check would be to see if a loaddata is capable of properly restoring what you have here.
If it does, then I probably wouldn’t worry about the representation of that data in your terminal session.
I have tried before, but it doesn’t work
I have found the problem now. My Django program runs on a Windows host and my database runs on WSL. When I migrate the program to WSL, everything is normal
Thank you for your help!