[Tutor] UTF-8 filenames encountered in os.walk
Kent Johnson
kent37 at tds.net
Tue Jul 3 23:52:14 CEST 2007
Alan Gauld wrote:
> "William O'Higgins Witteman" <hmm at woolgathering.cx> wrote
>
>> I have several programs which traverse a Windows filesystem with
>> French
>> characters in the filenames.
>
> I suspect you need to set the Locale at the top of your file.
Do you mean the
# -*- coding: <encoding-name> -*-
comment? That only affects the encoding of the source file itself.
Kent
More information about the Tutor
mailing list