Datacompy Library in Python writes Arabic letters as gibberish in the report

107 Views Asked by At

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

0

There are 0 best solutions below