Source: python-ftfy Maintainer: Debian Python Team Uploaders: Edward Betts , Section: python Priority: optional Build-Depends: debhelper-compat (= 13), dh-sequence-python3, dh-sequence-sphinxdoc , pybuild-plugin-pyproject, python3-all, python3-hatchling, Build-Depends-Indep: furo , python3-pytest , python3-sphinx , python3-wcwidth , Standards-Version: 4.7.2 Homepage: https://github.com/rspeer/python-ftfy Vcs-Browser: https://salsa.debian.org/python-team/packages/python-ftfy Vcs-Git: https://salsa.debian.org/python-team/packages/python-ftfy.git Testsuite: autopkgtest-pkg-pybuild Package: python3-ftfy Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, ${sphinxdoc:Depends}, Built-Using: ${sphinxdoc:Built-Using}, Description: Fixes mojibake and other Unicode text problems This library automatically repairs text that has been corrupted by misapplied character encodings, such as mojibake or other encoding-related issues. It analyzes strings to identify and correct cases where characters were incorrectly decoded, reconstructing the intended Unicode text. This includes fixing multiple layers of encoding errors, handling curly quote characters, and decoding HTML entities that are outside of proper HTML contexts, even with unusual capitalization. The library is designed to avoid making unnecessary or incorrect changes to text that is already correctly encoded. It helps restore text readability in content that has been malformed through various data handling and transfer processes, such as those involving databases, spreadsheets, or outputs from web sources. It does not attempt to detect encodings from scratch, but rather focuses on repairing commonly-encountered forms of corrupted Unicode text.