0
我試圖解析RSS提要,並與編碼解析的InputStream從URL的StAX
有問題,如果編碼UTF-8,結果是正確的,但問題的另一類型,espessially窗口-1251
代碼低於
XMLInputFactory inputFactory = XMLInputFactory.newInstance();
InputStream in = new URL(channel.getUrl()).openStream();;
XMLEventReader eventReader = inputFactory.createXMLEventReader(in);
我不想在讀取後將內容保存到區域設置文件。任何人都可以幫忙嗎?