简体   繁体   English

如何将我的unicode html实体解码为java中的字符串,以及如何导出到Excel?

[英]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? 如何将我的unicode html实体解码为java中的字符串,以及如何导出到Excel? My code is here, 我的代码在这里,

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

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

Once I export following result list to excel it shows uni-code(HTML entities). 一旦我将以下结果列表导出为ex​​cel,它将显示uni-code(HTML实体)。 How to export excel with exact string using java? 如何使用Java导出具有精确字符串的Excel?

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. 您应该可以使用Java的StringEscapeUtils.unescapeJava()进行解码,然后要导出到Excel,可以使用CSV或使用制表符路由。 Each tab corresponds to a column, just append them wherever necessary. 每个选项卡都对应一列,只需在必要时将其附加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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