Edgewall Software

Opened 12 years ago

Last modified 12 years ago

#5169 closed defect

UTF8 Conversion Error — at Initial Version

Reported by: bodo.tasche@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: search system Version: 0.10.3.1
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:

Description

We updated our Trac to 0.10.3.1 and moved it to a new machine, but since then we have the following error if we search for some word like "version":

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.4/site-packages/trac/Search.py", line 181, in process_request

results += list(source.get_search_results(req, terms, filters))

File "/usr/lib/python2.4/site-packages/trac/ticket/api.py", line 267, in get_search_results

for summary, desc, author, keywords, tid, date, status in cursor:

File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 40, in iter

row = self.cursor.fetchone()

File "/usr/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 73, in fetchone

return row and self._convert_row(row) or None

File "/usr/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 69, in _convert_row

return tuple([(isinstance(v, str) and [v.decode('utf-8')] or [v])[0]

File "/usr/lib/python2.4/encodings/utf_8.py", line 16, in decode

return codecs.utf_8_decode(input, errors, True)

UnicodeDecodeError: 'utf8' codec can't decode byte 0xa7 in position 174: unexpected code byte

Change History (0)

Note: See TracTickets for help on using tickets.