Paste in some unicode text that appears to be broken and this tool will use the ftfy Python library to try and fix it.
import ftfy.bad_codecs # enables sloppy- codecs s = "selamat berpuasa sob (Ã\x83Â\xa0Ã\x82¸ââ\x82¬Â¡'Ã\x83Å\x92ââ\x80\x9a¬Ã\x83¢Ã\x85â\x80\x99Ã\x82£'Ã\x83Å\x92Ã\x82Â\x81)Ã\x83Â\xa0Ã\x82¸ââ\x82¬Â¡" s = s.encode('latin-1') s = s.decode('utf-8') s = s.encode('sloppy-windows-1252') s = s.decode('utf-8') s = s.encode('sloppy-windows-1252') s = s.decode('utf-8') print(s)
Web app source code on GitHub