aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/http/BaseServlet.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/http/BaseServlet.java b/src/org/traccar/http/BaseServlet.java
index 89eefc11c..394e4d317 100644
--- a/src/org/traccar/http/BaseServlet.java
+++ b/src/org/traccar/http/BaseServlet.java
@@ -38,6 +38,8 @@ public abstract class BaseServlet extends HttpServlet {
command = "";
}
try {
+ resp.setContentType("application/json");
+ resp.setCharacterEncoding("UTF-8");
if (!handle(command, req, resp)) {
resp.sendError(HttpServletResponse.SC_BAD_REQUEST);
}