Eclipse XML/RSS Parsing in hebrew

badanto

New Member
I'm following this tutorial:http://www.vogella.com/articles/RSSFeed/article.htmlIt works great and i'm able to get all the information I need.However, all the 'fields' contents is in Hebrew, so when I parse it and display the results, all I get is something like this (after manipulating and removing unnecessary tags):\[code\]Question: 1536. ??? ??? ????? ????? ????? ????? ?????? ??? ???? ???? ??????. ???: Answers:1: ???? ?? ????? ?? ?? ????? ?????? ?? ?????. 2: ???? ?? ????? ?? ???? ???? ???? ?????.3: ???? ?? ????? ?? ???? ???? ???? ?????, ????? ?????? ???????.4: ???? ???? ???? ????? ?? ???? ????, ?? ???? ???? ????- ?????.\[/code\]The XML is encoded in UTF-8 and looks as it should in a web browser.I tried explicitly setting the ecnoding with this line:\[code\]XMLEventReader eventReader = inputFactory.createXMLEventReader(in,"UTF-8"); \[/code\]But that didn't work. I tried changing the XML's encoding to unicode (as well as the above line) but still the same result.I'm suspecting it might only be an eclipse encoding issue, because when doing something like this:\[code\]System.out.println("??? ?????");\[/code\]results in printing \[code\]??? ?????\[/code\]The project is for an Android app, if it matters.Can anyone help me solve this?Thanks in advance!
 
Back
Top