I am facing an error on Unicode decoding of path if it contain a folder/file name starting with character 'u'
I am not sure what is causing this error.
any help appreciated
Rgds,
aberry
Code:
>>> fp = "C:\\ab\\anil"
>>> unicode(fp, "unicode_escape")
u'C:\x07b\x07nil'
>>> fp = "C:\\ab\\unil"
>>> unicode(fp, "unicode_escape")
Traceback (most recent call last):
File "<pyshell#41>", line 1, in <module>
unicode(fp, "unicode_escape")
UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 5-9: end of string in escape sequence
>>>
any help appreciated
Rgds,
aberry
Comment