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.0.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.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: webencodings-0.6.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a5dddb9e355a6feb04ad51afb20194f600654d4cb2d8ae6d4efa2d684df1d699
MD5 f0bbe50d20051d30daa904298a3c9afd
BLAKE2b-256 c3d6ea3dfb6bafbc4c120556f19f4ca8a5a5d88afb3902567dc2102cc4e1bcb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for webencodings-0.6.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: webencodings-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d27ff2f4dfe3807b344b2d696982278be61f0db44175c0199b99172f19ab9aef
MD5 c13f1a6ca19718d8fdac1aeb3dd59d67
BLAKE2b-256 6085342120bed3252e21b2075226717927f5f83be9479ffbd274dc7cb101790e

See more details on using hashes here.

Provenance

The following attestation bundles were made for webencodings-0.6.0-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