Skip to main content

webencodings is a Python implementation of the WHATWG Encoding standard.

In order to be compatible with legacy web content when interpreting something like Content-Type: text/html; charset=latin1, tools need to use a particular set of aliases for encoding labels as well as some overriding rules. For example, US-ASCII and iso-8859-1 on the web are actually aliases for windows-1252, and an UTF-8 or UTF-16 BOM takes precedence over any other encoding declaration. The Encoding standard defines all such details so that implementations do not have to reverse-engineer each other.

This module has encoding labels and BOM detection, but the actual implementation for encoders and decoders is Python’s.

This module is a friendly fork of webencodings, written and maintained by Simon Sapin and Sam Sneddon.

Copyrights are retained by their contributors, no copyright assignment is required to contribute to webencodings. Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion is licensed under the BSD 3-clause license, without any additional terms or conditions. For full authorship information, see the version control history.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webencodings-0.6.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webencodings-0.6.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file webencodings-0.6.1.tar.gz.

File metadata

  • Download URL: webencodings-0.6.1.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for webencodings-0.6.1.tar.gz
Algorithm Hash digest
SHA256 565f9ad031c702dae404e27a099e3e09186a3ab1b9520f06d215502b651fd910
MD5 47dfd43da448410f24fbc08d597ac72d
BLAKE2b-256 d5a08fd707bcb776a7be556bad06a2ea5fb9bd519df78ef8e26f70ccf0f38bff

See more details on using hashes here.

Provenance

The following attestation bundles were made for webencodings-0.6.1.tar.gz:

Publisher: release.yml on CourtBouillon/webencodings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file webencodings-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: webencodings-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for webencodings-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7fab6269c8bf237c657876b52058ccb182e861518d1c695c1a9aaa8c1c105d5b
MD5 43a07e45ea8b7d7c9494e95bb7c6f222
BLAKE2b-256 77c6040cbc72480d789a5f40d63fb484d3106554c4dfa2d2b70ad5022057750f

See more details on using hashes here.

Provenance

The following attestation bundles were made for webencodings-0.6.1-py3-none-any.whl:

Publisher: release.yml on CourtBouillon/webencodings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page