It seems like there's issues with entities an Arabic. This deserves investigation. Possible tools to keep in mind: - https://pypi.org/project/python-bidi/ - https://pypi.org/project/arabic-reshaper/