Added charset=utf-8 to weblog to allow for utf-8 encoding

This commit is contained in:
Gregg 2023-04-23 15:14:57 -05:00
parent 947e2af012
commit 2ce78fead6
1 changed files with 1 additions and 1 deletions

View File

@ -1243,7 +1243,7 @@ int HAPClient::getStatusURL(){
sprintf(uptime,"%d:%02d:%02d:%02d",days,hours,mins,secs);
String response="HTTP/1.1 200 OK\r\nContent-type: text/html\r\n\r\n";
String response="HTTP/1.1 200 OK\r\nContent-type: text/html; charset=utf-8\r\n\r\n";
response+="<html><head><title>" + String(homeSpan.displayName) + "</title>\n";
response+="<style>body {background-color:lightblue;} th, td {padding-right: 10px; padding-left: 10px; border:1px solid black;}" + homeSpan.webLog.css + "</style></head>\n";