From ae5c6d7641683371133533079cbb89c313ddc8b1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2019 13:56:05 +0100 Subject: [PATCH] Encoding --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 6098d73f..22f40d18 100644 --- a/daemon.py +++ b/daemon.py @@ -982,7 +982,7 @@ class PubServer(BaseHTTPRequestHandler): imageDescription=self.path.split('?desc=')[1] if '?' in imageDescription: imageDescription=imageDescription.split('?')[0] - msg=htmlFullScreenImage(imageFilename,imageDescription) + msg=htmlFullScreenImage(imageFilename,imageDescription).encode('utf-8') self._set_headers('text/html',len(msg),cookie) self._write(msg) self.server.GETbusy=False