diff --git a/src/base/http/types.h b/src/base/http/types.h index 0c1cb2f14..ff4d8e0a3 100644 --- a/src/base/http/types.h +++ b/src/base/http/types.h @@ -63,7 +63,7 @@ namespace Http const char CONTENT_TYPE_HTML[] = "text/html"; const char CONTENT_TYPE_CSS[] = "text/css"; - const char CONTENT_TYPE_TXT[] = "text/plain"; + const char CONTENT_TYPE_TXT[] = "text/plain; charset=UTF-8"; const char CONTENT_TYPE_JS[] = "application/javascript"; const char CONTENT_TYPE_JSON[] = "application/json"; const char CONTENT_TYPE_GIF[] = "image/gif"; diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index ab163afbc..d969428b1 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -601,9 +601,9 @@ void TorrentsController::addAction() } if (partialSuccess) - setResult("Ok."); + setResult(QLatin1String("Ok.")); else - setResult("Fails."); + setResult(QLatin1String("Fails.")); } void TorrentsController::addTrackersAction()