Bonjour tout le monde !
Je bloque sur un problème de charset lors de la lecture d'un flux rss avec ROME RSS feedparser:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 ERROR: WIN-1251 java.io.UnsupportedEncodingException: WIN-1251 at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:52) at java.io.InputStreamReader.<init>(InputStreamReader.java:83) at com.sun.syndication.io.XmlReader.prepareReader(XmlReader.java:428) at com.sun.syndication.io.XmlReader.doHttpStream(XmlReader.java:424) at com.sun.syndication.io.XmlReader.doLenientDetection(XmlReader.java:363) at com.sun.syndication.io.XmlReader.<init>(XmlReader.java:320) at com.sun.syndication.io.XmlReader.<init>(XmlReader.java:354) at com.sun.syndication.fetcher.impl.HttpURLFeedFetcher.readSyndFeedFromStream(HttpURLFeedFetcher.java:264) at com.sun.syndication.fetcher.impl.HttpURLFeedFetcher.getSyndFeedFromStream(HttpURLFeedFetcher.java:277) at com.sun.syndication.fetcher.impl.HttpURLFeedFetcher.resetFeedInfo(HttpURLFeedFetcher.java:191) at com.sun.syndication.fetcher.impl.HttpURLFeedFetcher.retrieveAndCacheFeed(HttpURLFeedFetcher.java:163) at com.sun.syndication.fetcher.impl.HttpURLFeedFetcher.retrieveFeed(HttpURLFeedFetcher.java:119) at com.subfeeder.rss.FeedGrabber.getFeed(FeedGrabber.java:32) at com.subfeeder.rss.FeedParser.parseAllFeed(FeedParser.java:39) at com.subfeeder.rss.AdminFeedServlet.processRequest(AdminFeedServlet.java:43) at com.subfeeder.rss.AdminFeedServlet.doGet(AdminFeedServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:619)
Est ce que quelqu'un a une idée de ce que je peux faire pour régler le problème ? J'ai déjà parsé des flux rss sans problème, mais là celui là me génère cette exception en chaine ... (le flux rss incriminé : http://www.tvsubtitles.net/rssfr.xml )






Répondre avec citation
Partager