senario1:
String columnVal = "中文";
String columnVal = "中文";
String url = "http://www.baidu.com/?q=" + columnVal;
HyperlinkCollection hyperlinks = rawDataSheet.getHyperlinks();
hyperlinks.add(row, col, 1, 1, url);
senario2:
cell.putValue(columnVal);
then I will save to hyperlinkTest.xlsx
ByteArrayOutputStream ms = new ByteArrayOutputStream();
workbook.save(ms, SaveFormat.XLSX);
byte[] bytesWorkbook = ms.toByteArray();
FileOutputStream fos = new FileOutputStream("C://Users//hyperlinkTest.xlsx");
fos.write(bytesWorkbook);
fos.close();
-------------------------------------------------------------------------------------------
In senario1, we would get messy code in url,
howerver we can see normally in senario2 with chinese value(中文).
howerver we can see normally in senario2 with chinese value(中文).
may I know how to use hyperlink with chinese charater?