The solution is simple to read the string values โโof a string of any encoding (non-English characters); just use the following method:
sValue = cell.getRichStringCellValue().getString();
instead:
sValue = cell.getStringCellValue();
This applies to UTF-8 encoded characters such as Chinese, Arabic, or Japanese.
PS , if anyone uses the nullpunkt / excel-to-json command-line utility that uses the Apache POI library, change the converter file / ExcelToJsonConverter.java, replacing the entries in "getStringCellValue ()" to avoid reading non-English characters like "?? ? "
Yacoub oweis
source share