简体   繁体   中英

How to decode my unicode html entities into string in java and how to export to excel?

How to decode my unicode html entities into string in java and how to export to excel? My code is here,

importExportXML.setTitle(rs.getString(3));

" ஆல்ஃபா தியானம் "

Once I export following result list to excel it shows uni-code(HTML entities). How to export excel with exact string using java?

You should be able to use Java's StringEscapeUtils.unescapeJava() for decoding, then for exporting to Excel, you can either use CSV, or go the tab route. Each tab corresponds to a column, just append them wherever necessary.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM