当前位置:网站首页>Unicode processing in response of flash interface

Unicode processing in response of flash interface

2022-07-05 17:49:00 Qredsun

Problem description :

   When flask When there is Chinese in the interface response implemented , Interface returned as unicode.
 Insert picture description here

Question why :

  flask Is used in the default configuration of ascii code
 Insert picture description here

resolvent :

   Creating flask app when , close ascii Encoding mode

app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False
原网站

版权声明
本文为[Qredsun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051716496049.html