Gente, já procurei no forum, e dos topicos similares peguei os exemplos para tentar solucionar meu problema. Porem ate agora nada.
Tenho um sistema web, q qd faço o deploy nele no servidor, e gero um relatorio (PDF ou CSV), as palavras com acentuação aparecem com os caracteres modificados.
Seguem abaixo todos os testes q fiz ate o momento, sem sucesso:
---------------- METODO 1 -----------------------------
HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
response.setContentType(“application/xls”);
response.setHeader(“Content-disposition”,“attachment; filename=“detalhamento.csv””);
response.setCharacterEncoding(“ISO-8859-1”);
response.setLocale(new Locale(“pt”, “BR”));
ServletOutputStream os = response.getOutputStream();
---------------- METODO 2 -----------------------------
HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
response.setContentType(“application/xls”);
response.setHeader(“Content-disposition”,“attachment; filename=“detalhamento.csv””);
response.setCharacterEncoding(“ISO-8859-1”);
ServletOutputStream os = response.getOutputStream();
---------------- METODO 3 -----------------------------
HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
response.setContentType(“application/xls”);
response.setHeader(“Content-disposition”,“attachment; filename=“detalhamento.csv””);
response.setCharacterEncoding(“UTF-8”);
response.setLocale(new Locale(“pt”, “BR”));
ServletOutputStream os = response.getOutputStream();
---------------- METODO 4 -----------------------------
HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
response.setContentType(“application/xls”);
response.setHeader(“Content-disposition”,“attachment; filename=“detalhamento.csv””);
response.setCharacterEncoding(“UTF-8”);
ServletOutputStream os = response.getOutputStream();
POR FAVOR, QUEM PUDER ME AJUDAR, AGRADEÇO!