|
|
|
|
|
by rspeer
3088 days ago
|
|
In fact, ftfy already figures that text out! Here are the recovery steps that the website outputs: import ftfy.bad_codecs # enables sloppy- codecs
s = '!¡!HONDA POW'
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('latin-1')
s = s.decode('utf-8')
print(s)
And the decoded text is (for some reason): !¡!HONDA POW
|
|