当我从 Java 网页中检索数据时,为什么 html 实体显示错误:
URL url = new URL("http://www.eslcafe.com/joblist/index.cgi?read=27334");
URLConnection connection = url.openConnection();
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream(), Charset.forName("ISO-8859-1")));
String line = null;
while ((line = reader.readLine()) != null) {
System.out.println(line);
}
这个页面的标题应该被检索为“A LITTLE Different in Hsin-Chu, Taiwan!”,但是“”从来没有正确显示,我的默认字符集也是“ISO-8859-1”