On 2006-11-09, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to