detect('http://stackoverflow.com')
detect('http://stackoverflow.com/questions/269060/is-there-a-python-lib')
Is there a Python library function which attempts to guess the character-encoding of some bytes?