NETWORKING: Convert translation results to UTF-8 for local webserver pages

This commit is contained in:
Thierry Crozat 2019-09-19 00:16:24 +01:00 committed by Filippos Karapetis
parent c38600410e
commit caf0968078
11 changed files with 82 additions and 64 deletions

View file

@ -107,7 +107,7 @@ const char *GetClientHandler::responseMessage(long responseCode) {
void GetClientHandler::prepareHeaders() {
if (!_specialHeaders.contains("Content-Type"))
setHeader("Content-Type", "text/html");
setHeader("Content-Type", "text/html; charset=UTF-8");
if (!_specialHeaders.contains("Content-Length") && _stream)
setHeader("Content-Length", Common::String::format("%u", _stream->size()));