Table of Contents

How to fix CSV export encoding issues in N4V for Webi

Anonymised summary of support ticket #979465 (2026-09-08)

Symptom

CSV files generated via the Data Analyzer export method are incorrectly encoded, leading to garbled or unreadable characters.

Environment

N4V for Webi (Need4Viz extensions for SAP BusinessObjects Web Intelligence) running on Tomcat. Default JVM encoding is used for CSV generation.

Resolution

  1. Open the JSP file responsible for CSV generation (e.g., N4V_write.jsp) located in the Tomcat webapps directory under N4VCustomElements/engine/.
  2. Locate the line: FileWriter filewriter = new FileWriter(N4VFilename);
  3. Comment out this line and replace it with: BufferedWriter filewriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(N4VFilename), "windows-1252"));
  4. Save the file. No server restart is required.
  5. Retry the CSV export to verify the encoding is now correct.

Other resolution

If the issue persists, test with other encodings (e.g., UTF-8) by replacing "windows-1252" with the desired encoding name.