I have a table in mysql with tamil characters. Using python i attempted to fetch data from the table, and tried to print the response in json format.
def train_masters_live():
        questions = request.args.get('question').encode('utf8')
        print("testing", (questions))
        conn = mysql.connect()
        cursor = conn.cursor()
        cursor.execute("select answers from tamil_service")
        result = cursor.fetchone()
        print(result)
        return jsonify(
             {
                  "data":result
             }
        )
i am getting error while encoding utf-8. Can someone give me a basic example to get tamil character as a response

 
    