I want to replace the character ي (Unicode:\u064A) With the character ی (Unicode:\u06CC). I tried the following code:
import unicodedata as ud
normalForm = ud.normalize('NFKD','رزاﻗﻲ')
for charr in normalForm:
if charr == 'ي':
print('true')
charr = charr.replace('ي','ی')
print(normalForm)
However, this code doesn't work, and it returns the same character:
رزاقي
while it should return:
رزاقی
I wanted to try replacing using their Unicode (or any other method), How can I achieve this?