Use POI, write Chinese characters

xiaoxiao2021-03-06  167

JAKARTA-POI

POI is a project of Apache, providing reading and writing support to Microsoft Excel format.

When writing Chinese characters, pay attention to the encoding:

??????? HSSFCELL CELL = row.createcell ((Short) 0); ??????? Cell.setencoding (hssfcell.encoding_utf_16); ??????? Cell.SetCellValue ("Chinese" );?

转载请注明原文地址:https://www.9cbs.com/read-128049.html

New Post(0)