开发者

Changing Encoding while Xml.parse() with SaxFeedParser Java

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜