To do this, you need to set the encoding of the author of the response . With only the response header, you basically only instruct the client application, which encoding is used to interpret / display the page. This will not work if the answer itself is written with a different encoding.
, , ( , ), :
JSP, JSP, :
<%@ page pageEncoding="WIN-1255" %>
Servlet, :
response.setCharacterEncoding("WIN-1255");
Content-Type charset, / . . .
, API java.net / java.io, OutputStreamWriter, 2 , :
Writer writer = new OutputStreamWriter(someOutputStream, "WIN-1255");