decoder Module

Caller will hand this library a buffer and ask it to either convert it or auto-detect the type.

Based on http://code.activestate.com/recipes/52257/

Licensed under the PSF License

gluon.decoder.autoDetectXMLEncoding(buffer)[source]

buffer -> encoding_name The buffer should be at least 4 bytes long. Returns None if encoding cannot be detected. Note that encoding_name might not have an installed decoder (e.g. EBCDIC)

gluon.decoder.decoder(buffer)[source]