This is a typescript script that aims at generating a migration to fix the mojibake in our DB past the conversion to utf8mb4
.
The script uses pyodide to run python-ftfy in JS. It then iterates over DB rows and generates a migration script to alter the content of said rows removing the mojibake.
Ensure python-ftfy is submoduled correctly so that wheels can be built.
cd python-ftfy && pip wheel .
npm run start