Anything like 'inspect.getsourceencoding()'?

Robert Brewer fumanchu at amor.org
Sun Oct 17 01:30:05 EDT 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. http://manatee.mojam.com/~skip/python/decodeh.py


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org



More information about the Python-list mailing list