from app import app from flask import Response @app.route("/hello_gb2312_failed") def hello_gb2312_failed(): headers = {"Content-Type": "text/html"} data = """