[Tutor] Unicode filenames (Windows)

Terry Carroll carroll at tjc.com
Wed Jun 21 00:16:05 CEST 2006


On Tue, 20 Jun 2006, Kent Johnson wrote:

> What happens if you pass a Unicode string to listdir(), 
> e.g. os.listdir(u'.')?

Doh!  I should've thought of that.  Works great.

Of course, in the meantime I went through and manually renamed 100 files
by hand, but this is good to know for the next time!

Thanks, Kent!



More information about the Tutor mailing list