Hi all! How can i read http stream with HTML page in page's encoding? Here is a code fragment i use to get the http stream. InputStreamReader has the encoding optional argument, but i have no ideas about the way to obtain it.
URLConnection conn = url.openConnection();
InputStream is = conn.getInputStream();
BufferedReader d = new BufferedReader(new InputStreamReader(is));