How to get non-latin characters from website?

Posted by latata on Stack Overflow See other posts from Stack Overflow or by latata
Published on 2011-02-27T13:38:47Z Indexed on 2011/02/27 15:24 UTC
Read the original article Hit count: 319

I try to get data from latata.pl/pl.php and view all sign (polish - iso-8859-2)

 final URL url = new URL("http://latata.pl/pl.php");
    final URLConnection urlConnection = url.openConnection();
    final BufferedReader in = new BufferedReader(new InputStreamReader(
            urlConnection.getInputStream()));
    String inputLine;

    while ((inputLine = in.readLine()) != null) {
        System.out.println(inputLine);
    }
    in.close();

It doesn't work. :( Any ideas?

© Stack Overflow or respective owner

Related posts about java

Related posts about encoding