Replies: 1 comment
-
I found 2 similar issues that might be helpful:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Self Checks
Content
When my Dify agent sends a POST request to a Flask backend API (which returns JSON encoded in UTF-8 with Content-Type: application/json; charset=utf-8), the agent receives and displays garbled characters instead of correct Chinese characters.
Set up a Flask backend that returns UTF-8 encoded Chinese content:
@app.route('/gov-agent', methods=['POST'])
def handle_request():
return jsonify({"message": "你好,世界!"})
Confirm that response headers include Content-Type: application/json; charset=utf-8
In Dify, create a workflow with an HTTP Request node calling the above endpoint.
Observe the output returned in Dify → the result is garbled.
Beta Was this translation helpful? Give feedback.
All reactions