Re: UnicodeDecodeError: problem when path contain folder start with character 'u

2009-06-22 Thread Vlastimil Brom
2009/6/22 aberry abe...@aol.in: I am facing an error on Unicode decoding of path if it contain a folder/file name starting with character 'u' . Here is what I did in IDLE 1. fp = C:\\ab\\anil 2. unicode(fp, unicode_escape) 3. u'C:\x07b\x07nil' 4. fp = C:\\ab\\unil 5. unicode(fp,

Re: UnicodeDecodeError: problem when path contain folder start with character 'u

2009-06-22 Thread Terry Reedy
aberry wrote: I am facing an error on Unicode decoding of path if it contain a folder/file name starting with character 'u' . Here is what I did in IDLE 1. fp = C:\\ab\\anil The results in two single \s in the string. Use / for paths, even on Windows, and you will have less trouble.

Re: UnicodeDecodeError: problem when path contain folder start with character 'u

2009-06-22 Thread Piet van Oostrum
aberry abe...@aol.in (a) a écrit: a I am facing an error on Unicode decoding of path if it contain a folder/file a name starting with character 'u' . a Here is what I did in IDLE a 1. fp = C:\\ab\\anil a 2. unicode(fp, unicode_escape) a 3. u'C:\x07b\x07nil' a 4. fp = C:\\ab\\unil a 5.