Kevin,
Kevin Ollivier wrote:
...
Out of curiosity, what does sys.getfilesystemencoding() return for you? Is it different from locale.getpreferredencoding() or locale.getdefaultlocale()[1]? Python docs suggest that sys.getfilesystemencoding() will return nothing under NT/XP but it does return something for me - mbcs, which does seem to work for converting file paths.
Just FYI, I am on a French Vista system and get this.
>>> sys.getdefaultencoding()
'utf-8'
>>> sys.getfilesystemencoding()
'mbcs'
>>> locale.getpreferredencoding()
'cp1252'
>>> locale.getdefaultlocale()
('fr_FR', 'cp1252')
The first is utf-8 as I have a sitecustomize.py in my Python root folder.
Werner