Edgewall Software

Changes between Initial Version and Version 1 of Ticket #4037


Ignore:
Timestamp:
Oct 28, 2006, 11:26:07 PM (18 years ago)
Author:
Christian Boos
Comment:

Can you try this?

  • trac/db/sqlite_backend.py

     
    6868
    6969    class SQLiteUnicodeCursor(sqlite.Cursor):
    7070        def _convert_row(self, row):
    71             return tuple([(isinstance(v, str) and [v.decode('utf-8')] or [v])[0]
     71            return tuple([(isinstance(v, str) and [v.decode('utf-8', 'replace')] or [v])[0]
    7272                          for v in row])
    7373        def fetchone(self):
    7474            row = sqlite.Cursor.fetchone(self)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4037

    • Property Owner changed from Jonas Borgström to Christian Boos
  • Ticket #4037 – Description

    initial v1  
    1212example:
    1313
    14 
     14{{{
    1515Oops… Trac detected an internal error: If you think this really should work and you can reproduce it, you should consider reporting this problem to the Trac team.
    1616Go to http://trac.edgewall.org/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the Python traceback found below.
     
    5656
    5757'''UnicodeDecodeError?: 'utf8' codec can't decode byte 0x81 in position 102: unexpected code byte'''
    58 
    59 
     58}}}