J
Jeff Epler
Is there a convenient way to find the encoding of a source file? I
thought maybe this would be in the inspect module, but I didn't see it
there. Just as nice would be a way to get the file as a unicode string,
I suppose.
(This is related to another thread I've recently posted to, where
another user was having trouble with pydoc's links to source files using
the file: protocol. I suggested having pydoc serve the source files,
and provided a patch, but it's crossed my mind that it would be nice to
tell the browser the encoding of that file.
Jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBcdWJJd01MZaTXX0RAnyUAJ9dN2Shq85BpM/LH6+QinvL3OD40gCfW7Hb
1zvj6WpqwJbtTk1bA1+4+nM=
=K3uY
-----END PGP SIGNATURE-----
thought maybe this would be in the inspect module, but I didn't see it
there. Just as nice would be a way to get the file as a unicode string,
I suppose.
(This is related to another thread I've recently posted to, where
another user was having trouble with pydoc's links to source files using
the file: protocol. I suggested having pydoc serve the source files,
and provided a patch, but it's crossed my mind that it would be nice to
tell the browser the encoding of that file.
Jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBcdWJJd01MZaTXX0RAnyUAJ9dN2Shq85BpM/LH6+QinvL3OD40gCfW7Hb
1zvj6WpqwJbtTk1bA1+4+nM=
=K3uY
-----END PGP SIGNATURE-----