Submitted by essam on Sat, 2006-02-25 15:59
aslmo 3lykom
i need ver urgent help
i try ti read data from file like that
FileInputStream fis = new FileInputStream(m_pass);
BufferedInputStream bis = new BufferedInputStream(fis);
DataInputStream dis = new DataInputStream(bis);
the fila has arabic data but i can't read it
essam
Sun, 2006-02-26 11:45
Permalink
the problem has been solved
aslmo 3lykom,
merci ya gama3a ana 7alat el problem el 7amdollah i useed that->
FileInputStream fis = new FileInoputStream(filename);
InputStreamReader isr = new InputStreamReader(fis, "UTF-8");
BufferedReader br = new BufferedReader(isr);
hieuvh1709
Tue, 2006-02-28 18:32
Permalink
I agree with essam
Yeah, I agree with essam. We use InputStreamReader to convert 8-bit data to 16-bit data and choose a desired encoding type.