Witam, mam taki kawałek kodu
public void getHTMLContent(String url) throws IOException
{
URL oracle = new URL(url);
URLConnection connection = oracle.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(connection.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
htmlContainer+=inputLine+"\n";
in.close();
}
i potem parsuje za pomocą RE.
"<section class=\""+SECTION_WEATHER_NAME+"\">([\\w\\W]+?)</section>";
i otrzymuje takie twory => WrocĹ‚aw itp. Nie wiem dokładnie gdzie tu leży problem. Czy w wyrażeniu regularnym czy przy pobieraniu html z URL.