我有一个程序,其中一个表格显示在屏幕上。只要没有重音符号,内容就会正确显示。
这是我的代码
StringBuffer sBuff = new StringBuffer();
if(!("CSV".equalsIgnoreCase(exportFormat) || "HTML".equalsIgnoreCase(exportFormat))){
sBuff.append("<p title=\""+displayparseado+"\">");
sBuff.append(displayparseado);
sBuff.append("</p>");
}
else{
sBuff.append(display);
}
我也试过解析字符串。
byte arr[] = display.getBytes("UTF-8");
String displayparseado = new String(arr);
预期输出:测试描述。
实际输出:

一张纸条; 我不能使用外部库。
慕标5832272
偶然的你
随时随地看视频慕课网APP
相关分类