X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=html%2Fresponse.py;fp=html%2Fresponse.py;h=071c5dfddc44af29791a0855f74a4d57bf47b5c3;hb=5c8f53a810fb2d55ff9381810dd1427ed7201949;hp=cee9891161d44a63d081597fb275d1b6a73db1ae;hpb=ed552696f81f160ff233a268cbc9b506e76edce9;p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git diff --git a/html/response.py b/html/response.py index cee9891..071c5df 100644 --- a/html/response.py +++ b/html/response.py @@ -11,7 +11,8 @@ def response(title, body, status=None): if status: print "Status:", status sys.stdout.write(str(result.cgiHeaders())) - sys.stdout.write(str(result)) + #sys.stdout.write(str(result)) + sys.stdout.write(unicode(result).encode('latin1')) def redirect(url, parameters=None, status=None): import urllib