---
title: "ftfy 6.0 Breaking Changes on PyPI | Since.dev"
description: "What each ftfy release removed, renamed or changed: 50 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/ftfy
last_updated: 2026-12-04
---

# 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

Latest version `6.3.1`, released October 26, 2024. 

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [5.0](#v-5-0) to [6.0](#v-6-0): 26 breaking changes in 1 version.
- From [4.0.0](#v-4-0-0) to [6.0](#v-6-0): 39 breaking changes in 2 versions.

## ftfy 6.0 breaking changes

ftfy 6.0, released April 9, 2021: 26 breaking changes.

- **Removed** `ftfy.badness.chars_to_classes`  

ftfy.badness.chars_to_classes was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.badness.COMMON_SYMBOL_RE`  

ftfy.badness.COMMON_SYMBOL_RE was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.badness.MOJIBAKE_SYMBOL_RE`  

ftfy.badness.MOJIBAKE_SYMBOL_RE was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.badness.text_cost`  

ftfy.badness.text_cost was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.badness.WEIRDNESS_RE`  

ftfy.badness.WEIRDNESS_RE was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.build_data`  

ftfy.build_data was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.char_classes`  

ftfy.char_classes was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.chardata.CHAR_CLASS_STRING`  

ftfy.chardata.CHAR_CLASS_STRING was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.chardata.chars_to_classes`  

ftfy.chardata.chars_to_classes was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.chardata.PARTIAL_UTF8_PUNCT_RE`  

ftfy.chardata.PARTIAL_UTF8_PUNCT_RE was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fix_text_encoding`  

ftfy.fix_text_encoding was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fixes.BYTES_ERROR_TEXT`  

ftfy.fixes.BYTES_ERROR_TEXT was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fixes.CHARMAP_ENCODINGS`  

ftfy.fixes.CHARMAP_ENCODINGS was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fixes.ENCODING_COSTS`  

ftfy.fixes.ENCODING_COSTS was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fixes.fix_one_step_and_explain`  

ftfy.fixes.fix_one_step_and_explain was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **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](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fixes.fix_text_encoding`  

ftfy.fixes.fix_text_encoding was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fixes.PARTIAL_UTF8_PUNCT_RE`  

ftfy.fixes.PARTIAL_UTF8_PUNCT_RE was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fixes.possible_encoding`  

ftfy.fixes.possible_encoding was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fixes.text_cost`  

ftfy.fixes.text_cost was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Removed** `ftfy.fixes.TRANSCODERS`  

ftfy.fixes.TRANSCODERS was removed in ftfy 6.0 [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **Behavior changed**  

The heuristic now only looks at characters expected to appear in mojibake, so fixing output may differ from earlier versions. [github.com](https://github.com/LuminosoInsight/python-ftfy/blob/v6.0/CHANGELOG.md)
- **Signature changed** `ftfy.fix_encoding`  

Was fix_encoding; now def fix_encoding(text: str, config: TextFixerConfig = None, \*\*kwargs). [pypi.org](https://pypi.org/project/ftfy/6.0/)
- **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](https://pypi.org/project/ftfy/6.0/)
- **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](https://pypi.org/project/ftfy/6.0/)
- **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](https://pypi.org/project/ftfy/6.0/)

## ftfy 5.0 breaking changes

ftfy 5.0, released March 9, 2017: 13 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](https://pypi.org/project/ftfy/5.0/)
- **Removed** `ftfy.bad_codecs.utf8_variants.mangle_surrogates`  

ftfy.bad_codecs.utf8_variants.mangle_surrogates was removed in ftfy 5.0 [pypi.org](https://pypi.org/project/ftfy/5.0/)
- **Removed** `ftfy.bad_codecs.utf8_variants.PYTHON2`  

ftfy.bad_codecs.utf8_variants.PYTHON2 was removed in ftfy 5.0 [pypi.org](https://pypi.org/project/ftfy/5.0/)
- **Removed** `ftfy.bad_codecs.utf8_variants.unichr`  

ftfy.bad_codecs.utf8_variants.unichr was removed in ftfy 5.0 [pypi.org](https://pypi.org/project/ftfy/5.0/)
- **Removed** `ftfy.build_data.unichr`  

ftfy.build_data.unichr was removed in ftfy 5.0 [pypi.org](https://pypi.org/project/ftfy/5.0/)
- **Removed** `ftfy.chardata.unichr`  

ftfy.chardata.unichr was removed in ftfy 5.0 [pypi.org](https://pypi.org/project/ftfy/5.0/)
- **Removed** `ftfy.cli.PYTHON2`  

ftfy.cli.PYTHON2 was removed in ftfy 5.0 [pypi.org](https://pypi.org/project/ftfy/5.0/)
- **Removed** `ftfy.compatibility`  

ftfy.compatibility was removed in ftfy 5.0 [pypi.org](https://pypi.org/project/ftfy/5.0/)
- **Removed** `ftfy.fixes.unichr`  

ftfy.fixes.unichr was removed in ftfy 5.0 [pypi.org](https://pypi.org/project/ftfy/5.0/)
- **Removed** `ftfy.is_printable`  

ftfy.is_printable was removed in ftfy 5.0 [pypi.org](https://pypi.org/project/ftfy/5.0/)

And 3 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## ftfy 4.0.0 breaking changes

ftfy 4.0.0, released May 11, 2015: 11 breaking changes.

- **Removed** `ftfy.cli.ENCODE_STDOUT`  

ftfy.cli.ENCODE_STDOUT was removed in ftfy 4.0.0 [pypi.org](https://pypi.org/project/ftfy/4.0.0/)
- **Removed** `ftfy.compatibility.UNSAFE_PRIVATE_USE_RE`  

ftfy.compatibility.UNSAFE_PRIVATE_USE_RE was removed in ftfy 4.0.0 [pypi.org](https://pypi.org/project/ftfy/4.0.0/)
- **Removed** `ftfy.fix_bad_encoding`  

The fix_bad_encoding function is gone. Use fix_encoding instead. [pypi.org](https://pypi.org/project/ftfy/4.0.0/)
- **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](https://pypi.org/project/ftfy/4.0.0/)
- **Removed** `ftfy.fixes.UNSAFE_PRIVATE_USE_RE`  

ftfy.fixes.UNSAFE_PRIVATE_USE_RE was removed in ftfy 4.0.0 [pypi.org](https://pypi.org/project/ftfy/4.0.0/)
- **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](https://github.com/LuminosoInsight/python-ftfy/blob/v4.0.0/CHANGELOG.md)
- **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](https://github.com/LuminosoInsight/python-ftfy/blob/v4.0.0/CHANGELOG.md)
- **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](https://pypi.org/project/ftfy/4.0.0/)
- **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](https://pypi.org/project/ftfy/4.0.0/)
- **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](https://pypi.org/project/ftfy/4.0.0/)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
