ftfy - fix unicode that's broken in various ways

Paste in some unicode text that appears to be broken and this tool will use the ftfy Python library to try and fix it.

s = 'Le Schtroumpf Docteur conseille gâ\x88\x9a¢teaux et baies schtroumpfantes pour un râ\x88\x9a©gime â\x88\x9a©quilibrâ\x88\x9a©.'
s = s.encode('latin-1')
s = s.decode('utf-8')
s = s.encode('macroman')
s = s.decode('utf-8')
print(s)

Examples

Web app source code on GitHub