I need to read some files from disk, as XML, then make a string of each of them and [using a queue to keep all the strings ] send via HTTP to the client per it's request.
If I use apache-commons-io.FileUtils.fileAsString - I get some characters not ending up the same in the result, so it looks like encoding problem which I don't know how to solve.
If I use XMLEventReader/Writer so as to treat the file as xml, read it by events etc, and then make a string out of it, then queue ets, the client can't read the XML at all ...
Please help -as this does feel like voodoo right now ..
Problem solved -indeed encoding issue, which is easy as pie to handle in FileUtils -just provided the relevant encoding as param to the method.
"Laziness is nothing more than the habit of resting before you get tired." - Jules Renard