#1185: Encoding problem with path of connection file
--------------------+-------------------------------------------------------
Reporter: cito | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: 0.8.3
Component: app | Version: 0.8.4
Keywords: |
--------------------+-------------------------------------------------------
In dbApp.py there is the following line:
{{{
sysFile = os.path.join(sp, connFile)
}}}
Now on my Win XP system, `sp` happened to be a utf-8 encoded filename with
non-ascii chars, while `connFile` was a unicode string. This raised an
exception because Python did not know how to encode the `connFile` string.
The following quick fix worked (but is maybe not right on Unix?)
{{{
sysFile = os.path.join(sp, connFile.encode('utf-8'))
}}}
--
Ticket URL: <http://trac.dabodev.com/ticket/1185>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]