hi
i want to know how to receive the string from file in java...
that file have different language letters...
i used UTF-8 format... this can receive some language letters correctly...
but Latin letters cant display correctly...
so how can i receive all language letters...
or any other format for receive all language letters...
the code is
URL url = new URL("http://google.cm");
URLConnection urlc = url.openConnection();
BufferedReader buffer = new BufferedReader(new InputStreamReader(urlc.getInputStream(), "UTF-8"));
StringBuilder builder = new StringBuilder();
int byteRead;
while ((byteRead = buffer.read()) != -1)
{
builder.append((char) byteRead);
}
buffer.close();
text=builder.toString();
if i display the "text" the letters cant display correctly
thanks and advance