Re: Help with Latin Characters

2011-07-24 Thread Benjamin Kaplan
On Sun, Jul 24, 2011 at 3:47 PM, Joao Jacome wrote: > > 2011/7/24 Chris Angelico >> >> On Mon, Jul 25, 2011 at 5:01 AM, Joao Jacome wrote: >> > Already tried without unicode string in rootdir, same results. What if try >> > using raw strings? >> >> Raw strings are just another way of typing them

Re: Help with Latin Characters

2011-07-24 Thread Joao Jacome
2011/7/24 Chris Angelico > On Mon, Jul 25, 2011 at 5:01 AM, Joao Jacome wrote: > > Already tried without unicode string in rootdir, same results. What if > try > > using raw strings? > > Raw strings are just another way of typing them into your source code. > There are different ways of writing

Re: Help with Latin Characters

2011-07-24 Thread Chris Angelico
On Mon, Jul 25, 2011 at 5:01 AM, Joao Jacome wrote: > Already tried without unicode string in rootdir, same results. What if try > using raw strings? Raw strings are just another way of typing them into your source code. There are different ways of writing string literals, but they produce the sa

Fwd: Help with Latin Characters

2011-07-24 Thread Joao Jacome
2011/7/24 Terry Reedy > On 7/24/2011 11:15 AM, Joao Jacome wrote: > >> http://pastebin.com/aMrzczt4 >> > >list = os.listdir(dir) > While somewhat natural, using 'list' as a local name and masking the > builtin list function is a *very bad* idea. Someday you will do this and > then use 'li

Re: Help with Latin Characters

2011-07-24 Thread Terry Reedy
On 7/24/2011 11:15 AM, Joao Jacome wrote: http://pastebin.com/aMrzczt4 list = os.listdir(dir) While somewhat natural, using 'list' as a local name and masking the builtin list function is a *very bad* idea. Someday you will do this and then use 'list(args)' expecting to call the list

Help with Latin Characters

2011-07-24 Thread Joao Jacome
http://pastebin.com/aMrzczt4 When the script reaches a file with latin characters (ê é ã etc) it crashes. Traceback (most recent call last): File "C:\backup\ORGANI~1\teste.py", line 37, in Retrieve(rootdir); File "C:\backup\ORGANI~1\teste.py", line 25, in Retrieve Retrieve(os.path.jo