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
Maybe somebody wants to fix this at one point.
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 would expect to be semicolon in Excel.
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
Maybe somebody wants to fix this at one point.
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 would expect to be semicolon in Excel.