4 ms·
ftfy (fixes text for you): https://github.com/LuminosoInsight/python-ftfy https://github.com/LuminosoInsight/python-ftfy Auto-detects Unicode mistakes (particu
by rspeer 10y ago
ftfy (fixes text for you): https://github.com/LuminosoInsight/python-ftfy https://github.com/LuminosoInsight/python-ftfy
Auto-detects Unicode mistakes (particularly mojibake), and if there's enough information left to fix them, it fixes them.
Particularly useful for Web scraping and dealing with Unicode that was incorrectly exported from Excel (which is nearly all Unicode exported from Excel).