ftfy breaking changes
ftfy 6.0 (April 9, 2021) is its newest release with breaking changes, 26 of them. The first: Removed ftfy.badness.chars_to_classes. Every breaking API change we have recorded in ftfy on PyPI: 50 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 6.3.1, released October 26, 2024.
Packages on PyPI run on Python. Python end of life dates.
- From 5.0 to 6.0: 26 breaking changes in 1 version.
- From 4.0.0 to 6.0: 39 breaking changes in 2 versions.
ftfy 6.0 breaking changes
- Removed
ftfy.badness.chars_to_classes
ftfy.badness.chars_to_classes was removed in ftfy 6.0 pypi.org - Removed
ftfy.badness.COMMON_SYMBOL_RE
ftfy.badness.COMMON_SYMBOL_RE was removed in ftfy 6.0 pypi.org - Removed
ftfy.badness.MOJIBAKE_SYMBOL_RE
ftfy.badness.MOJIBAKE_SYMBOL_RE was removed in ftfy 6.0 pypi.org - Removed
ftfy.badness.text_cost
ftfy.badness.text_cost was removed in ftfy 6.0 pypi.org - Removed
ftfy.badness.WEIRDNESS_RE
ftfy.badness.WEIRDNESS_RE was removed in ftfy 6.0 pypi.org - Removed
ftfy.build_data
ftfy.build_data was removed in ftfy 6.0 pypi.org - Removed
ftfy.char_classes
ftfy.char_classes was removed in ftfy 6.0 pypi.org - Removed
ftfy.chardata.CHAR_CLASS_STRING
ftfy.chardata.CHAR_CLASS_STRING was removed in ftfy 6.0 pypi.org - Removed
ftfy.chardata.chars_to_classes
ftfy.chardata.chars_to_classes was removed in ftfy 6.0 pypi.org - Removed
ftfy.chardata.PARTIAL_UTF8_PUNCT_RE
ftfy.chardata.PARTIAL_UTF8_PUNCT_RE was removed in ftfy 6.0 pypi.org - Removed
ftfy.fix_text_encoding
ftfy.fix_text_encoding was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.BYTES_ERROR_TEXT
ftfy.fixes.BYTES_ERROR_TEXT was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.CHARMAP_ENCODINGS
ftfy.fixes.CHARMAP_ENCODINGS was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.ENCODING_COSTS
ftfy.fixes.ENCODING_COSTS was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.fix_one_step_and_explain
ftfy.fixes.fix_one_step_and_explain was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.fix_partial_utf8_punct_in_1252
ftfy.fixes.fix_partial_utf8_punct_in_1252 was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.fix_text_encoding
ftfy.fixes.fix_text_encoding was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.PARTIAL_UTF8_PUNCT_RE
ftfy.fixes.PARTIAL_UTF8_PUNCT_RE was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.possible_encoding
ftfy.fixes.possible_encoding was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.text_cost
ftfy.fixes.text_cost was removed in ftfy 6.0 pypi.org - Removed
ftfy.fixes.TRANSCODERS
ftfy.fixes.TRANSCODERS was removed in ftfy 6.0 pypi.org - Behavior changed
The heuristic now only looks at characters expected to appear in mojibake, so fixing output may differ from earlier versions. github.com - Signature changed
ftfy.fix_encoding
Was fix_encoding; now def fix_encoding(text: str, config: TextFixerConfig = None, **kwargs). pypi.org - Signature changed
ftfy.fix_file
Was def fix_file(input_file, encoding=None, *, fix_entities='auto', remove_terminal_escapes=True, fix_encoding=True, fix_latin_ligatures=True, fix_character_width=True, uncurl_quotes=True, fix_line_breaks=True, fix_surrogates=True... pypi.org - Signature changed
ftfy.fix_text
Was def fix_text(text, *, fix_entities='auto', remove_terminal_escapes=True, fix_encoding=True, fix_latin_ligatures=True, fix_character_width=True, uncurl_quotes=True, fix_line_breaks=True, fix_surrogates=True, remove_control_chars=True... pypi.org - Signature changed
ftfy.fix_text_segment
Was def fix_text_segment(text, *, fix_entities='auto', remove_terminal_escapes=True, fix_encoding=True, fix_latin_ligatures=True, fix_character_width=True, uncurl_quotes=True, fix_line_breaks=True, fix_surrogates=True... pypi.org
ftfy 5.0 breaking changes
- Removed
ftfy.bad_codecs.utf8_variants.bytes_to_ints
ftfy.bad_codecs.utf8_variants.bytes_to_ints was removed in ftfy 5.0 pypi.org - Removed
ftfy.bad_codecs.utf8_variants.mangle_surrogates
ftfy.bad_codecs.utf8_variants.mangle_surrogates was removed in ftfy 5.0 pypi.org - Removed
ftfy.bad_codecs.utf8_variants.PYTHON2
ftfy.bad_codecs.utf8_variants.PYTHON2 was removed in ftfy 5.0 pypi.org - Removed
ftfy.bad_codecs.utf8_variants.unichr
ftfy.bad_codecs.utf8_variants.unichr was removed in ftfy 5.0 pypi.org - Removed
ftfy.build_data.unichr
ftfy.build_data.unichr was removed in ftfy 5.0 pypi.org - Removed
ftfy.chardata.unichr
ftfy.chardata.unichr was removed in ftfy 5.0 pypi.org - Removed
ftfy.cli.PYTHON2
ftfy.cli.PYTHON2 was removed in ftfy 5.0 pypi.org - Removed
ftfy.compatibility
ftfy.compatibility was removed in ftfy 5.0 pypi.org - Removed
ftfy.fixes.unichr
ftfy.fixes.unichr was removed in ftfy 5.0 pypi.org - Removed
ftfy.is_printable
ftfy.is_printable was removed in ftfy 5.0 pypi.org
And 3 more in this version. Sign up to see every change
ftfy 4.0.0 breaking changes
- Removed
ftfy.cli.ENCODE_STDOUT
ftfy.cli.ENCODE_STDOUT was removed in ftfy 4.0.0 pypi.org - Removed
ftfy.compatibility.UNSAFE_PRIVATE_USE_RE
ftfy.compatibility.UNSAFE_PRIVATE_USE_RE was removed in ftfy 4.0.0 pypi.org - Removed
ftfy.fix_bad_encoding
The fix_bad_encoding function is gone. Use fix_encoding instead. pypi.org - Removed
ftfy.fixes.remove_unsafe_private_use
The remove_unsafe_private_use parameter was removed after two versions of deprecation. Code passing it will no longer work. pypi.org - Removed
ftfy.fixes.UNSAFE_PRIVATE_USE_RE
ftfy.fixes.UNSAFE_PRIVATE_USE_RE was removed in ftfy 4.0.0 pypi.org - Behavior changed
The command-line tool now assumes UTF-8 input by default instead of guessing the encoding. Use the -g option to keep guessing. github.com - Default changed
fix_text
fix_text now defaults to NFC normalization instead of NFKC. Code relying on the old NFKC default should set the normalization explicitly. github.com - Signature changed
ftfy.fix_file
Was def fix_file(input_file, remove_unsafe_private_use=False, fix_entities='auto', remove_terminal_escapes=True, fix_encoding=True, normalization='NFKC', uncurl_quotes=True, fix_line_breaks=True, fix_surrogates=True... pypi.org - Signature changed
ftfy.fix_text
Was def fix_text(text, remove_unsafe_private_use=False, fix_entities='auto', remove_terminal_escapes=True, fix_encoding=True, normalization='NFKC', uncurl_quotes=True, fix_line_breaks=True, fix_surrogates=True, remove_control_chars=True... pypi.org - Signature changed
ftfy.fix_text_encoding
fix_text_encoding is now called fix_encoding. The old name still works but emits a warning, so update calls to the new name. pypi.org
And 1 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.