Python arabic text returns in right-to-left orientation instead of left-to-right
问题 I'm working on a python project with Python(3.6) and Flask in which I have to return a text in Arabic. When I print the text in the console it works well but when I return it as response it's order changes to right-to-left. Here's what I have tried: from odoa import ODOA import arabic_reshaper from bidi.algorithm import get_display from flask import Flask import json app = Flask(__name__) app.config['JSON_AS_ASCII'] = False @app.route('/', methods=['GET']) def get_an_ayah(): odoa = ODOA()