Fix unicode for plain syntax queries

This commit is contained in:
Keith Mitchell
2012-08-31 10:51:34 -07:00
parent 34418630d6
commit 4327c8d15c

View File

@@ -651,7 +651,7 @@ class CloudSearchQuery(object):
"converted": bq}
self.bq = self.customize_query(bq)
elif self.syntax == "plain":
q = self.query
q = self.query.encode('utf-8')
if g.sqlprinting:
g.log.info("%s", self)
return self._run_cached(q, self.bq.encode('utf-8'), self.sort,