greek and spanish chars are not properly displayed with UTF8 in jdk1.4
The following code is to write greece and spanish characters to a datafille on solaris platform. and download the datafile onto windows system
String str3 = FileDataObject.getFcName().equalsIgnoreCase("GREECE") ? "8859_7": System.getProperty("file.encoding");
// FileDataObject represents greek and spanish characters
// values of File DataObject are written to datafile
out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileNameList.getNameAt(k),false),str3)));
out.print("|HEADER|");
out.print(FileDataObject.getTransactionType()+"|");
out.print(""+FileDataObject.getFcName()+"|");
out.print(""+currentDate+"|");
This code was working fiine with jdk1.2on solaris platform ,
for jdk 1.2i was able to display all spanish and greek characters in MS word template.
but when i moved tojdk1.4.2 on solaris platform , some of the spanish chracters are replaced by '?'and , greek characters are totally replaced by some funny characters.
i tried to move to UTF-8 encoding even then nothing is working for me.
looking forward for ur valuable suggestions for the above problem

