Hacker News new | past | comments | ask | show | jobs | submit login

Sometimes it can detect quite a lot more than 2-3 levels! The "magic" function really feels like it earns its name.



If you like that, try FTFY https://ftfy.readthedocs.io/en/latest/ which can automatically repair a huge range of ways that Unicode text can be broken by re-encoding. This would be a great addition to CyberChef if they could reproduce it in JS.

Classic example from the docs:

> ftfy can fix multiple layers of mojibake simultaneously:

    >>> ftfy.fix_text('The Mona Lisa doesn’t have eyebrows.')
    "The Mona Lisa doesn't have eyebrows."




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: