I am using Datacompy Library in Python to compare two dataframes that have Arabic data, the data gets encoded safely and successfully using "cp1256" encoder and Python displays the Arabic letters correctly on the console but when Datacompy starts comparing the data and then produces the comparison report, the Arabic letters get converted to something like ÃáÚ and ÃÑåÔæÈ in the Report.txt file.
Can I fix this problem of writing Arabic letters the wrong way in the file? Any help would be appreciated. Thanks