On Tue, 3 Jul 2007, William O'Higgins Witteman wrote: > Has anyone found a silver bullet for ensuring that all the filenames > encountered by os.walk are treated as UTF-8? Thanks.
What happens if you specify the starting directory as a Unicode string, rather than an ascii string, e.g., if you're walking the current directory: for thing in os.walk(u'.'): instead of: for thing in os.walk('.'): _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor