willkg/kitsune — comment on commit dd4355227b3cb6c883768379b991c099220e1175
File: apps/search/utils.py line 19
By erikrose:

What exactly is Sphinx returning? According to our sphinx.conf, it knows our encoding is UTF-8. Perhaps we need to add the encoding to SphinxMeta as well. We shouldn't need to call (or copy) smart_unicode() in any case, as it has a bunch of stuff for dealing with _lazys and nonstrings and things with special __unicode__() overrides, which certainly aren't going to come out of Sphinx excerpts. A simple call to decode() might be enough.