Print HTML entities from CSV file
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çucar</product> <quantity>5723</quantity> <value>7.00</value> </item> Any idea how to do this?
Why can't you just use UTF-8 or something like that? Surely any web browser should accept it. Otherwise, you might want to have a look at this: Recommended method for escaping HTML in Java
MouseDragged event is too slow
BufferedWriter line separator becomes double line separator
Errror with method postFlush in Hibernate Interceptors
Arabic encoding error when using requests restful client
String to enum using valueOf crashes with java.lang.IllegalArgumentException [duplicate]
How can I include(load) more than one jsp files in spring mvc controller class?
Java TCP IP server client readline for TOF simulator
Server echoing back using Datagram Sockets in java
Why toString method won't get the selected item in JComboBox?
Apache Commons hashCode builder inconsistent hashes
Compare two Strings to be equal
How to split the text using selenium webdriver? [closed]
How do I get my server to print the input from my client class?
Android Paginated Map Bad Performance
Saving a dinamic SQL query to CSV?
Exception from GenericFilterBean are not catched with global exception handler #ControllerAdvice