I am parsing a long string of persian in python, and am opening it like this:
fp = codecs.open(f+i, 'r', encoding='utf-8').readlines()
and using
print(line[1])
but instead of printing out readable Persian, it outputs things like this in the terminal.
اطÙ
اعâرساÙ
On the webpage, it outputs it fine.
What is the issue with it? Thank you