hawk9821 commented on code in PR #9594:
URL: https://github.com/apache/seatunnel/pull/9594#discussion_r2218074640


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/rest/servlet/BaseServlet.java:
##########
@@ -46,47 +46,55 @@ public BaseServlet(NodeEngineImpl nodeEngine) {
     }
 
     protected void writeJson(HttpServletResponse resp, Object obj) throws 
IOException {
+        resp.setCharacterEncoding(StandardCharsets.UTF_8.toString());
         resp.setContentType("application/json");

Review Comment:
    Also specify the charset in Content-Type to ensure the client parses it 
correctly.  `resp.setContentType("application/json; charset=UTF-8");` 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to