Using JSP on a Tomcat I need to load a CSV file and then create an XML output for it to show be shown in the screen. My problem is that sometime this CSV file has special characters like ç, á, é, ó, etc. And in the Web Output (screen) I need to print the ISO-8859-1 entities equivalency, say, instead of ç I need to show ç
So word açucar needs to be shown as: açucar
I can read the CSV file but can't figure out how to tell JSP to print those html entities as I need to.
So if CSV file is:
product;quantity;value
açucar;5723;7.00;
I need to print in my screen something like:
<item> <product>a&#xe7;ucar</product> <quantity>5723</quantity> <value>7.00</value> </item>
Any idea how to do this?