On 10/27/10 5:45 AM, Ed Leafe wrote: > On Oct 27, 2010, at 5:44 AM, Henning Hraban Ramm wrote: > >> running dShell from the current SVN checkout I get: >> >> Traceback (most recent call last): > > [snip] > >> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >> python2.6/site-packages/dabo-trunk/dabo/db/dDataSet.py", line 322, in >> _populate >> self._cursor.executemany(insStmnt, recGenerator(ds)) >> sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless >> you use a text_factory that can interpret 8-bit bytestrings (like >> text_factory = str). It is highly recommended that you instead just >> switch your application to Unicode strings. > > > Paul recently made a change (r6123) that affected the way strings are > handled. Previously, the database adapter used Dabo's encoding; with this > change, the encoding is retrieved from the database. It sounds like this > isn't happening correctly for SQLite.
Actually, we don't check the database encoding at all, I don't think. The change I made allows Dabo to try different encodings (utf-8, latin-1, etc.) instead of having the sqlite adapter do the decoding. > Can you create a ticket for this? I don't have the time to dig into it > now, and I don't want this to get forgotten. Yes, we need a ticket. Paul _______________________________________________ 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]
