decoder Module

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

Based on

Licensed under the PSF License


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)