如何解决微信公众号自动回复Unicode码的问题

最近在做一个微信公众号自动回复的项目,用的是flask框架。收到微信服务器的请求并处理后,使用jsonify返回的信息内容是Unicode码

img

这是部分代码

@app.route('/wechatbottoken', methods=['GET','POST'])
def weixin_main():
    global access_token, expire_time
    get_access_token()
    if 1:
        xmldata = ET.fromstring(request.data)
        msg_type = xmldata.find('MsgType').text
        FromUserName = xmldata.find('FromUserName').text
        ToUserName = xmldata.find('ToUserName').text
        if msg_type == 'text':
            Content = xmldata.find('Content').text
            Content = '你好!'
            return_data = """<xml> 
  <ToUserName><![CDATA[{toUser}]]></ToUserName> 
  <FromUserName><![CDATA[{fromUser}]]></FromUserName> 
  <CreateTime>{ctime}</CreateTime> 
  <MsgType><![CDATA[text]]></MsgType> 
  <Content><![CDATA[{content}]]></Content> 
</xml>""".format(toUser=FromUserName, fromUser=ToUserName, ctime=int(time.time()), content=Content)
            return jsonify(return_data), {'Content-Type': 'text/html; charset=utf-8'}

用了app.config ['JSON_AS_ASCII']=False,但是不管用,求解决方法!

你的消息文本点上 encode().decode('unicode_escape')