cavenas Posted February 13, 2007 Share Posted February 13, 2007 Hello, I have a problem with UTF-8 encoding with CSV exporter in a TOMCAT / Servlet environment.All is fine with other exporters (PDF, HTML, XLS), but I still haven't found a solution with CSV exporter. Here's the piece of code what I'm using in my servlet:PrintWriter printWriter = response.getWriter() ;JRCsvExporter exporter = new JRCsvExporter();exporter.setParameter(JRCsvExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRCsvExporterParameter.OUTPUT_WRITER, printWriter);exporter.setParameter(JRCsvExporterParameter.FIELD_DELIMITER, ";"); exporter.setParameter(JRCsvExporterParameter.CHARACTER_ENCODING, "UTF-8");exporter.exportReport(); The browser result is a suite of question marks (????...) instead of unicode caracters (arial.ttf font). :( I'm using japserreports 1.3.0 and TOMCAT 5.5.20 with JDK 1.5 on Linux/Windows plateforms. There are another forum threads on this issue but answers are not complete. Thanks for any help. cav Link to comment Share on other sites More sharing options...
zsoelod Posted May 24, 2007 Share Posted May 24, 2007 HiI had excatly the same problem under weblogic92, any news on this? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now