I'm reading xsl file using XSLReader class, and one of the columns contains strings but sometimes this string have enter in the (\n), so when I read this and print it I'm printing the string with the \n:
those are two addresses, the first one have enter in the xsl string, and the second doesn't...
VIALE SALVATORE REBECCHINI 39 \n00148 ROMA RM\n
viale castello della maglina,65-00148 roma
someone suggested some solution but it didnt work, i had to import common-lang3 and it looks like this:
this.supplierAddress = StringEscapeUtils.escapeJava(info[19]);
it suppose to ignore the \n but it dosen't..
anyone?
thanks!
Did you try with :
And escapeJava() is not what you need, you need is unescapeJava() but like it says in the javadoc :