Update hasp_http.cpp

Add `<meta charset='utf-8'>` to head of the webpages so that diacritics are rendered properly by the web browsers.
This commit is contained in:
nagyrobi 2021-03-10 11:24:51 +01:00 committed by GitHub
parent 9527e6368f
commit 85854fe9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ const char MAIN_MENU_BUTTON[] PROGMEM =
const char MIT_LICENSE[] PROGMEM = "</br>MIT License</p>";
const char HTTP_DOCTYPE[] PROGMEM =
"<!DOCTYPE html><html lang=\"en\"><head><meta name=\"viewport\" content=\"width=device-width,initial-scale=1,"
"<!DOCTYPE html><html lang=\"en\"><head><meta charset='utf-8'><meta name=\"viewport\" content=\"width=device-width,initial-scale=1,"
"user-scalable=no\"/>";
const char HTTP_META_GO_BACK[] PROGMEM = "<meta http-equiv='refresh' content='15;url=/'/>";
const char HTTP_HEADER[] PROGMEM = "<title>%s</title>";
@ -2118,4 +2118,4 @@ size_t httpClientWrite(const uint8_t * buf, size_t size)
return bytes_sent;
}
#endif
#endif