1

I have a Web Api with flask, when call my services and i see the results in the browser, the answer never print special characters

from flask import Flask, jsonify

...

response = jsonify({"response": "a á, e é" })
response.headers["Content-Type"] = "application/json; charset=utf-8"
return response

The response have the headers, but don't print the accents

Example response for {"response": "a á, e é" }

{   "response": "a \u00e1, e \u00e9" }

I am currently using python 3.7.4, Flask 1.1.1

Adamo Figueroa
  • 330
  • 2
  • 14

0 Answers0