posted 14 years ago
There shouldn't be any encoding issues if you save the bytes you receive from the InputStream directly into a file. Encodings only enter the picture once the bytes are converted into characters.
Open the saved file in a text editor, and try out various encodings to see which one might be correct.