rspeer/python-ftfy
Fixes mojibake and other glitches in Unicode text, after the fact. observed · 2026-08-28
Health v2 · maintenance only
34/100
- Activity 0
- Release rhythm 40
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 14
- age_days: 5122
- days_rel: 677
- days_push: 672
- n_releases_24m: 2
Adoption not part of the score
4060 stars · 127 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ftfy is a Python library that fixes mojibake (encoding mix-ups) and other Unicode text glitches after the fact, recovering original text from mis-decoded UTF-8. It also provides a command-line interface for fixing text files.
Use cases
- fix mojibake in scraped text
- clean up garbled unicode characters in a dataset
- repair text that was decoded with the wrong encoding
- fix broken utf-8 strings in python
- clean text before training a language model
- undo double-encoded unicode
When to choose
- you have text with visible mojibake like '✔' or 'é' that needs repair
- you're cleaning web-scraped or user-submitted text for NLP pipelines
- you want a well-tested, heuristic-based fixer rather than writing encoding hacks yourself
When to avoid
- you need general encoding detection for unknown files rather than fixing known mojibake
- you need to normalize or transliterate text rather than repair encoding errors
- you're not working in Python and can't use the CLI
Facets
library · maturity stable
nlp parser developer-tools developer-tools text-editors python cli cross-platform unicode mojibake text-cleaning encoding-fixes data-cleaning natural-language-processing
1 source
- readme: https://github.com/rspeer/python-ftfy · fetched 2026-08-28 · 5a3c0fefdf29
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rspeer/python-ftfy | main | 34 |
For agents
markdown · JSON · MCP: product_card(name="rspeer/python-ftfy")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem