• Post Reply Bookmark Topic Watch Topic
  • New Topic

PROBLEM WITH PARSING  RSS feed

 
nesto costa
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i made the following parser:

the LanguageBean has 2 fields, code and description.

my problem is when i try to parse this file:

has you can see some of the words have accents and when i parse the file it comes out like this:

i tried to change the encoding of the scanner but nothing good came out of it...

anyone with sugestions??

JCE: Please use code tags
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How exactly does it "come out like that"? I.e., where is the reconstructed file text coming from? The "\u00E3" are Unicode escape sequences that you can use to represent Unicode characters within Java code, so the information is actually all still there; it's just being displayed oddly.
 
nesto costa
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the file which is being given by String fich in the dataParse function is the source file with the normal text. inside the while cicle, if i print every line, it doesn't appear like the source text but it appears with these escape sequences.

any sugestion?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!