Manoj Nair
Usenet Archive
- Joined
- Aug 22, 2000
- Messages
- 17
- Reaction score
- 0
I am using following code to create an XML file and which is rendered into a PDF by using XMLParser and then FOP. This works fine on windows system. But when I port the code to Unix I get "utf8 encoding error". Is there a different way I need to represent the string "utf8" on unix ? Thanks
FileOutputStream fileoutstream = new FileOutputStream(foFile); Writer writer = new OutputStreamWriter(fileoutstream, "utf8"); writer.write(foDoc.toString.trim); writer.close;
FileOutputStream fileoutstream = new FileOutputStream(foFile); Writer writer = new OutputStreamWriter(fileoutstream, "utf8"); writer.write(foDoc.toString.trim); writer.close;