My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 7791: Admin tool can't browse search index containing unicode characters
3 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  g...@google.com
Closed:  Aug 2012


Sign in to add a comment
 
Reported by nfar...@gmail.com, Jul 3, 2012
When I try to browse a search index on my development server, like so:

   http://localhost:8091/_ah/admin/search_index?index=omnibox

I get an error like:

========
  Traceback (most recent call last):
  File "[...]webapp2.py", line 1536, in __call__
    rv = self.handle_exception(request, response, e)
[...]
  File "[...]ext/admin/__init__.py", line 1664, in _ProcessSearchResponse
    value = TruncateValue(doc.fields[field_name].value)
  File "[...]ext/admin/__init__.py", line 158, in TruncateValue
    value = str(value)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 165: ordinal not in range(128)
========

Replacing "str" with "ustr" in TruncateValue seems to fix this.
Jul 3, 2012
#1 g...@google.com
(No comment was entered for this change.)
Status: Accepted
Jul 3, 2012
#2 g...@google.com
(No comment was entered for this change.)
Status: Started
Owner: g...@google.com
Aug 22, 2012
#3 mar...@google.com
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment

Powered by Google Project Hosting