os.path.expanduser on Windows: UnicodeEncodeError

Bob Swerdlow rswerdlow at goombah.com
Mon Jul 18 10:22:05 EDT 2005


My application is getting this error on Windows XP (works fine on Mac OS X) 
when it calls os.path.expanduser:
    UnicodeEncodeError: 'ascii' codec can't encode characters in position 
52-56: ordinal not in range(128)

The code was built with Python 2.3.4.

I found referenes to Path 957650, but I'm not familiar with how such fixes 
are processed.  Is there a patch I can add to fix this?  How do I know what 
version of Python it is fixed in - that is, will upgrading to Python 2.3.5 
fix this?

Thanks for your help,

Bob Swerdlow
VP Engineering
Goombah - Music Discovery
rswerdlow at goombah.com 





More information about the Python-list mailing list