First off, thank you for that easy to use ftp libary. Sadly, I have a strange problem. My Java Programm runs on a AIX and USS (which is a UNIX under a HOST) both with the IBM JDK. On the AIX I have no problems at all but on the USS everything works except for the encoding. Let me give a example:
I can connect from the USS to every FTP Server an even browse , but when I get a directory listing or a text file (which is ASCII), the econding is something I can not read.
If in the Directory are two files called: angemeldet.sh and blik. ftp.dir() will give me ??_?%????? and ?%?, .
I tried to convert these Strings with:
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out, "Cp037")); //and "Cp850"
for (int i = 0; i < listing.length; i++) {
out.println(listing[i]);
}
out.flush();
but I had no luck. The most strange is, that when I download a Text File it has the same unreadable Information, but when I upload it again it converts back to normal ASCII. Magic!
If you have any Idea how get this encoding problem fixed please let me know. How can I find out which encoding ist ??_?%????? ?
Greetings and thanks Codon