I'm using the SAX Parser in android. I had to change the EventHandler like this:
else if(xGrowerNotes){
profile.setGrowerNotes(profile.getGrowerNotes()+chars);
//random bug
}
i have a version of an XML file in 4 languages, UTF-8 encoded. I call the parser with
is.setEncoding("UTF-8");
3 languages work fine, however, the spanish one troubles me. It starts like No apretar las plantas. Regul... and the event is 2 times called. Meaning without the change, it would have cut of the first part and set only "ar las plantas. Regul..." as text. If i add "test 1 2 3" in front of the string, the cut moves, meaning it's like the first 13 charackters are cut. It is only in the spanish Version and all documents are same encoded. Adding "test 1 2 3" to the end of the text extends the 2nd string.
Can anyone clarify this please? Thanks in advance!