req.ohead["Content-Type"] = "text/html; charset=utf-8"
buf = io.BytesIO()
htmlindenter.output(buf, tree, doctype=(doctype, dtd), charset="utf-8")
req.ohead["Content-Type"] = "text/html; charset=utf-8"
buf = io.BytesIO()
htmlindenter.output(buf, tree, doctype=(doctype, dtd), charset="utf-8")