Trying to add hyperlinks pointing to a file on a network share containing umlauts in the path (e.g. "X:\Pläne\list.xlsx") - yes, I know what should be done to people creating these folders ;)
I use worksheet.Cell(iRow, COL_NUM_LINK).Hyperlink = new XLHyperlink(myLink) and it works fine, except for the umlauts, which are broken.
When I later edit the hyperlink containing "ä" in Excel it has been "converted" to "ä" which to me looks like a UTF-8 encoded text opened with ISO 8859-15/ISO 8859-1
I managed to find a workaround which uses the Excel function HYPERLINK to generate the links:
worksheet.Cell(iRow, COL_NUM_LINK).FormulaA1 = string.Format("=HYPERLINK(\"{0}\",\"{1}\")", myLink, myLinkText) ;
Be aware of the __comma separating the two parts of the formula__, where one coming from Excel would expect to be a semicolon.
Maybe this helps people until this is fixed at some point.
I use worksheet.Cell(iRow, COL_NUM_LINK).Hyperlink = new XLHyperlink(myLink) and it works fine, except for the umlauts, which are broken.
When I later edit the hyperlink containing "ä" in Excel it has been "converted" to "ä" which to me looks like a UTF-8 encoded text opened with ISO 8859-15/ISO 8859-1
I managed to find a workaround which uses the Excel function HYPERLINK to generate the links:
worksheet.Cell(iRow, COL_NUM_LINK).FormulaA1 = string.Format("=HYPERLINK(\"{0}\",\"{1}\")", myLink, myLinkText) ;
Be aware of the __comma separating the two parts of the formula__, where one coming from Excel would expect to be a semicolon.
Maybe this helps people until this is fixed at some point.