Skip to content

Commit ed03c88

Browse files
committed
upgrade smart-servlet to 0.6-SNAPSHOT
1 parent 69c80e4 commit ed03c88

File tree

1 file changed

+1
-1
lines changed
  • frameworks/Java/smart-socket/src/main/java/org/smartboot/servlet

1 file changed

+1
-1
lines changed

frameworks/Java/smart-socket/src/main/java/org/smartboot/servlet/JsonServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class JsonServlet extends HttpServlet {
1717
@Override
1818
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
19-
resp.setContentType("application/json");
19+
resp.setContentType("application/json;charset=UTF-8");
2020
resp.setBufferSize(0);
2121
JsonUtil.writeJsonBytes(resp, new Message("Hello, World!"));
2222
}

0 commit comments

Comments
 (0)