Wrong encoding of uploaded file content?

Hello,

Some data my app displays gets into there by way of Upload component. The file contains UTF text and some characters (characteristic for Hungarian locale) becomes garbled on the display. Tried to find a place in the API where the encoding could be checked/set, to no avail.

Any suggestion?

Thanks!
Zsolt

OK. It seems I have to to take care of encoding by using OutputStreamWriter.

Zsolt

In receiveUpload I did [*]
:
OutputStream os = new WriterOutputStream(new OutputStreamWriter(new FileOutputStream(file), “UTF-8”));

return os;

Unfortunately the problem remained.

Any idea welcome!
Zsolt