flaxsearch / flaxcode

Automatically exported from code.google.com/p/flaxcode
4 stars 1 forks source link

results page can't cope with some characters? #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
-What steps will reproduce the problem?
1. Index the 'CharliesFiles' test collection (all file types)
2. Search for 'committee meeting'
3. Move to the third page of results

-What is the expected output? What do you see instead?

Python error as follows:

500 Internal Server Error

The server encountered an unexpected condition which prevented it from
fulfilling the request.

Traceback (most recent call last):
  File "C:\work\Flax\localinst\cherrypy\_cprequest.py", line 551, in respond
    cherrypy.response.body = self.handler()
  File "C:\work\Flax\localinst\cherrypy\_cpdispatch.py", line 24, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "c:\work\Flax\src\cpserver.py", line 247, in search
    return self._search.search(advanced=False, **kwargs )
  File "c:\work\Flax\src\cpserver.py", line 217, in search
    return self._result_template (results, self._collections, cols)
  File "C:\work\Flax\src\templates.py", line 412, in admin_search_result_render
    return self._tman.create_admin_template("search_result.html",
render_search_result).render (*args)
  File "..\localinst\HTMLTemplate.py", line 729, in render
    self.__callback(clone, *args)
  File "C:\work\Flax\src\templates.py", line 327, in render_search_result
    template.main.results.repeat(fill_results, results.xap_results)
  File "..\localinst\HTMLTemplate.py", line 444, in repeat
    fn(clone, item, *args)
  File "C:\work\Flax\src\templates.py", line 306, in fill_results
    title = res.data['title'][0].encode('utf-8') if 'title' in res.data
else filename
UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in position 115:
ordinal not in range(128)

Original issue reported on code.google.com by charliej...@gmail.com on 16 Oct 2007 at 12:56

GoogleCodeExporter commented 9 years ago
Shouldn't we be outputting unicode in any case?

Original comment by paul.x.r...@googlemail.com on 16 Oct 2007 at 7:29

GoogleCodeExporter commented 9 years ago
Now fixed - collections must however be re-indexed to benefit.

Original comment by paul.x.r...@googlemail.com on 26 Oct 2007 at 7:26

GoogleCodeExporter commented 9 years ago

Original comment by boulton.rj@gmail.com on 30 Oct 2007 at 12:02