Anything like 'inspect.getsourceencoding()'?

Robert Brewer fumanchu at
Sun Oct 17 07:30:05 CEST 2004

Jeff Epler wrote:
> Is there a convenient way to find the encoding of a source file?

Short answer: no, you have to guess. But check out some good guessing
algorithms at e.g.

Robert Brewer
Amor Ministries
fumanchu at

More information about the Python-list mailing list