diff --git a/Scripts/web_server.py b/Scripts/web_server.py index a8a144a..a4dc79f 100644 --- a/Scripts/web_server.py +++ b/Scripts/web_server.py @@ -34,9 +34,9 @@ class TempWebServer: response = self._get_status_page(sensors, ac_monitor, heater_monitor) conn.send('HTTP/1.1 200 OK\r\n') - conn.send('Content-Type: text/html\r\n') + conn.send('Content-Type: text/html; charset=utf-8\r\n') conn.send('Connection: close\r\n\r\n') - conn.sendall(response) + conn.sendall(response.encode('utf-8')) conn.close() except OSError: pass # No connection, continue @@ -64,102 +64,165 @@ class TempWebServer:
-