开发者

Changing Encoding while Xml.parse() with SaxFeedParser Java

开发者 https://www.devze.com 2022-12-27 18:53 出处:网络
I am trying to load hebrew rss using the fllow : Xml.parse(_InputStream,Xml.Encoding.ISO_8859_1 , root.getContentHandler());

I am trying to load hebrew rss using the fllow :

Xml.parse(_InputStream, Xml.Encoding.ISO_8859_1 , root.getContentHandler());

taken from ibm site : link text开发者_JS百科

I would like to use other Encoding like "ISO8859_8" rather than :

Xml.Encoding.ISO_8859_1,

Xml.Encoding.US_ASCII,

Xml.Encoding.UTF_16,

Xml.Encoding.UTF_8

Thanks a lot!


you can't, because Xml.Encoding is an enum. you'll have to use one of the other methods, or -- if you can -- get the RSS feed producer to output UTF-8.

0

精彩评论

暂无评论...
验证码 换一张
取 消