Problem getting a file pathname with tkFileDialog

Neil Cerutti horpner at
Thu Nov 9 14:37:40 CET 2006

On 2006-11-09, jmdeschamps at <jmdeschamps at> wrote:
> you could also use encode("iso-8859-1") to nterpret just the
> printed name such as: print myfilename.encode("iso-8859-1")
> and by the way if you wanted the file NAME you could have used
> openfilename() instead of openfile()    ;-)

The encoding of the filenames in the file system is available
from sys.getfilesystemencoding(). That might turn out to be
useful when interpreting them.

Neil Cerutti
Strangely, in slow motion replay, the ball seemed to hang in the air
for even longer. --David Acfield

More information about the Python-list mailing list