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.

import ftfy.bad_codecs  # enables sloppy- codecs
s = 'Kayanya laptopku error deh, soalnya tiap mau ngetik deket-deket kamu font yg keluar selalu Times New Ã\x83¢ââ\x80\x9a¬Ã\x85â\x80\x9c RomanceÃ\x83¢ââ\x80\x9a¬Ã\x82Â\x9d.'
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)

Examples

Web app source code on GitHub