diff -r bc623a3e44e9 -r 71a842bdf81d cubicweb/web/views/sparql.py --- a/cubicweb/web/views/sparql.py Tue Dec 17 21:21:55 2019 +0100 +++ b/cubicweb/web/views/sparql.py Thu Dec 19 08:13:22 2019 +0100 @@ -119,7 +119,7 @@ sparql = E.sparql(E.head(*(E.variable(name=name) for name in varnames)), results) self.w(u'\n') - self.w(etree.tostring(sparql, encoding=unicode, pretty_print=True)) + self.w(etree.tostring(sparql, encoding=str, pretty_print=True)) def cell_binding(self, row, col, varname): celltype = self.cw_rset.description[row][col]