자바 response 난 코드 해결 방법

705 단어 응답 코드
public static void write2Client(HttpServletResponse paramHttpServletResponse, String paramString)
  {
    String str = "utf-8";
    paramHttpServletResponse.setCharacterEncoding(str);
    paramHttpServletResponse.setContentType("text/html;charset=" + str);
    try
    {
      write2Client(paramHttpServletResponse, paramString.getBytes(str));
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {
      localUnsupportedEncodingException.printStackTrace();
    }
  }

키 코드:
    String str = "utf-8";     response.setCharacterEncoding(str);     response.setContentType("text/html;charset="+ str);

좋은 웹페이지 즐겨찾기