skip to navigation
skip to content

encutils 0.8

Encoding detection collection for Python.

Downloads ↓

Latest Version: 0.9

>A collection of helper functions to detect encodings of text files (like HTML, XHTML, XML, CSS, etc.) retrieved via HTTP, file or string.

getEncodingInfo is probably the main function of interest which uses other supplied functions itself and gathers all information together and supplies an EncodingInfo object with the following properties:

  • encoding: The guessed encoding

    Encoding is the explicit or implicit encoding or None and always lowercase.

  • from HTTP response
    • http_encoding
    • http_media_type
  • from HTML <meta> element
    • meta_encoding
    • meta_media_type
  • from XML declaration
    • xml_encoding

Requires Python 2.3 or later

 
File Type Py Version Uploaded on Size # downloads
encutils-0.8-py2.5.egg (md5) Python Egg 2.5 2007-08-14 37KB 735
encutils-0.8.zip (md5) Source 2007-08-14 96KB 375