> aberry (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:\
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.
2009/6/22 aberry :
>
> 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. >>> un