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 = 'The Mona Lisa doesnÃ\x83Æ\x92Ã\x82¢Ã\x83¢ââ\x82¬Å¡Ã\x82¬Ã\x83¢ââ\x82¬Å¾Ã\x82¢t have eyebrows.' 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') s = s.encode('sloppy-windows-1252') s = s.decode('utf-8') print(s)
Web app source code on GitHub