Skip to content

use marshal_with Chinese garbled code #635

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

Open
loflv opened this issue Apr 7, 2025 · 0 comments
Open

use marshal_with Chinese garbled code #635

loflv opened this issue Apr 7, 2025 · 0 comments
Labels
question Further information is requested

Comments

@loflv
Copy link

loflv commented Apr 7, 2025

When I use marshal_with, if there is Chinese, it will be garbled. I have set up

app.json.ensure_ascii = False
app.config["JSON_AS_ASCII"] = False

And when I don't use marshal_with, there will be no garbled code. I want to know how to set marshal_with so that there is no garbled code

@loflv loflv added the question Further information is requested label Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant