diff --git a/src/allmydata/web/common.py b/src/allmydata/web/common.py index 4fb2372a5..a3f1688d1 100644 --- a/src/allmydata/web/common.py +++ b/src/allmydata/web/common.py @@ -571,6 +571,12 @@ def _finish(result, render, request): resource=fullyQualifiedName(type(result)), ) result.render(request) + elif isinstance(result, unicode): + Message.log( + message_type=u"allmydata:web:common-render:unicode", + ) + request.write(result.encode("utf-8")) + request.finish() elif isinstance(result, bytes): Message.log( message_type=u"allmydata:web:common-render:bytes",