encutils 0.8
Encoding detection collection for Python.
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 | |
- Author: Christof Hoeke
- Home Page: http://cthedot.de/encutils/
- Download URL: http://cthedot.de/encutils/
- Keywords: encoding,i18n,xml,html,css
- License: http://creativecommons.org/licenses/by/3.0/
- Platform: Python 2.3 and later.
-
Categories
- Development Status :: 4 - Beta
- Environment :: Web Environment
- Intended Audience :: Developers
- License :: Other/Proprietary License
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Internet
- Topic :: Internet :: WWW/HTTP
- Topic :: Software Development :: Internationalization
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: Text Processing :: Markup :: HTML
- Topic :: Text Processing :: Markup :: XML
- Package Index Owner: christof
- DOAP record: encutils-0.8.xml
