You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.0 KiB

4 years ago
  1. Metadata-Version: 2.0
  2. Name: webencodings
  3. Version: 0.5.1
  4. Summary: Character encoding aliases for legacy web content
  5. Home-page: https://github.com/SimonSapin/python-webencodings
  6. Author: Geoffrey Sneddon
  7. Author-email: me@gsnedders.com
  8. License: BSD
  9. Platform: UNKNOWN
  10. Classifier: Development Status :: 4 - Beta
  11. Classifier: Intended Audience :: Developers
  12. Classifier: License :: OSI Approved :: BSD License
  13. Classifier: Programming Language :: Python
  14. Classifier: Programming Language :: Python :: 2
  15. Classifier: Programming Language :: Python :: 2.6
  16. Classifier: Programming Language :: Python :: 2.7
  17. Classifier: Programming Language :: Python :: 3
  18. Classifier: Programming Language :: Python :: 3.3
  19. Classifier: Programming Language :: Python :: 3.4
  20. Classifier: Programming Language :: Python :: 3.5
  21. Classifier: Programming Language :: Python :: 3.6
  22. Classifier: Programming Language :: Python :: Implementation :: CPython
  23. Classifier: Programming Language :: Python :: Implementation :: PyPy
  24. Classifier: Topic :: Internet :: WWW/HTTP
  25. python-webencodings
  26. ===================
  27. This is a Python implementation of the `WHATWG Encoding standard
  28. <http://encoding.spec.whatwg.org/>`_.
  29. * Latest documentation: http://packages.python.org/webencodings/
  30. * Source code and issue tracker:
  31. https://github.com/gsnedders/python-webencodings
  32. * PyPI releases: http://pypi.python.org/pypi/webencodings
  33. * License: BSD
  34. * Python 2.6+ and 3.3+
  35. In order to be compatible with legacy web content
  36. when interpreting something like ``Content-Type: text/html; charset=latin1``,
  37. tools need to use a particular set of aliases for encoding labels
  38. as well as some overriding rules.
  39. For example, ``US-ASCII`` and ``iso-8859-1`` on the web are actually
  40. aliases for ``windows-1252``, and an UTF-8 or UTF-16 BOM takes precedence
  41. over any other encoding declaration.
  42. The Encoding standard defines all such details so that implementations do
  43. not have to reverse-engineer each other.
  44. This module has encoding labels and BOM detection,
  45. but the actual implementation for encoders and decoders is Python’s.