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 = 'NapÄ\x82Â\xadĹË\x87te nÄ\x82Ë\x87m !' s = s.encode('latin-1') s = s.decode('utf-8') s = s.encode('sloppy-windows-1250') s = s.decode('utf-8') print(s)
Web app source code on GitHub