A
A
artshelom2016-10-14 18:08:46
Java
artshelom, 2016-10-14 18:08:46

How to fix page reading??

url = new URL("https://www.instagram.com/explore/tags/" + heshteg+ "/");
        HttpURLConnection connect = (HttpURLConnection)url.openConnection();
        InputStream is = connect.getInputStream();
        BufferedReader rd = new BufferedReader(new InputStreamReader(url.openStream()));
        //Пишет ответ

I read the page and the place of the letters appears here are the characters "\u044e\u043b\u0438\u043d\u044b_\u0441\u043a\u0430\u0437\u043a\u0438", how to fix it ???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sirs, 2016-10-14
@sirs

Try to use this

final String answer = StringEscapeUtils.unescapeJava(inputText);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question