X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fresp.py;fp=wrw%2Fresp.py;h=4840799fb65befc6ad4fa3213e0b4d21fffa4317;hp=6e95ec56c8f172a6104adf4e39eec2cc58850cb1;hb=ae10a0a1fb12d6f9c0ecdb250046ab75c322961e;hpb=3614ca8353a5f2055fdcc086e6bc9dc993b49b42 diff --git a/wrw/resp.py b/wrw/resp.py index 6e95ec5..4840799 100644 --- a/wrw/resp.py +++ b/wrw/resp.py @@ -43,7 +43,7 @@ class usererror(dispatch.restart): self.detail = detail def handle(self, req): - return [skelfor(req).error(self.message, self.detail)] + return [skelfor(req).error(self.message, self.detail).encode("utf-8")] class message(dispatch.restart): def __init__(self, message, detail): @@ -52,7 +52,7 @@ class message(dispatch.restart): self.detail = detail def handle(self, req): - return [skelfor(req).message(self.message, self.detail)] + return [skelfor(req).message(self.message, self.detail).encode("utf-8")] class httperror(usererror): def __init__(self, status, message = None, detail = None):