sys.getfilesystenencodig() returns "mbcs". If I understand correctly, all strings passed to os.path etc. has to be explicitly set as Unicode...
os.chdir('ø') # OSError: [Errno 2] No such file or directory: '\x9b' os.chdir(u'ø') # OK os.getcwd() # c:\\temp\\\xf8 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wolfram Hinderer Sent: 16. august 2007 11:54 To: Dabo Users list Subject: Re: [dabo-users] Something not accepting extended ascii?SqlLite perhaps? 2007/8/16, Simen Haugen <[EMAIL PROTECTED]>: > I have a problem with a computer that has extended ascii in the path > name to the preferences. I cannot think there is any other problem, as > it's working on a lot of different computers, and this is the only one I > know that doesn't have regular ascii in the path name. > > The Dabo catalog has been created, but no DaboPreferences.db has been > created. > > Traceback (most recent call last): > File "dptools.py", line 353, in ? > File "dabo\dApp.pyo", line 166, in __init__ > File "dabo\dObject.pyo", line 41, in __init__ > File "dabo\dApp.pyo", line 467, in _initProperties > File "dabo\dObject.pyo", line 148, in _initProperties > File "dptools.py", line 84, in initProperties > File "dabo\dApp.pyo", line 742, in _setBasePrefKey > File "dabo\dObject.pyo", line 266, in _setBasePrefKey > File "dabo\dObject.pyo", line 340, in _getPreferenceManager > File "dabo\dPref.pyo", line 68, in __init__ > File "dabo\db\dConnection.pyo", line 31, in __init__ > File "dabo\db\dConnection.pyo", line 73, in _openConnection > File "dabo\db\dConnectInfo.pyo", line 98, in getConnection > File "dabo\db\dbSQLite.pyo", line 53, in getConnection > File "dabo\db\dbSQLite.pyo", line 46, in __init__ > pysqlite2.dbapi2.OperationalError: unable to open database file > How is the path encoded? The encoding sys.getfilesystemencoding() should work. Wolfram [excessive quoting removed by server] _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]