main dots / scripts / Scripts / python / mojibake.py
xxwhirlpool  ·  2026-09-29
 1#!/usr/bin/env -S uv run --script
 2# /// script
 3# requires-python = ">=3.14"
 4# dependencies = [
 5#     "ftfy>=6.3.1",
 6# ]
 7# ///
 8
 9import ftfy
10
11print("paste fucked up text:")
12
13text2fix = input()
14
15fixed = ftfy.fix_text(text2fix)
16
17print(fixed)