Hello. I am interested in how to solve the problem of displaying question marks instead of Cyrillic characters in the JSON received by an Ajax request. Almost all the topics found using the search advise you to set a code page, but in my case it will not help in any way since the ad of the code page I have from the very beginning, along with the ad mime-type. Debager also showed that the server is transmitting normal JSON.
PrintWriter outs = response.getWriter(); SprIzmDao dao = new SprIzmDao(); int i = Integer.parseInt(request.getParameter("id")); EdIzmBean bean=dao.getIzmObj(i); response.setContentType("application/json"); response.setCharacterEncoding("UTF-8"); outs.print(bean.toString()); outs.flush(); As you can see, the code is very simple. Perhaps the error in it lies in plain sight, but for some reason I don’t see it in emphasis.
SprIzmDaoorEdIzmBean.. - E1mir