Excel accepts some characters whereas OpenXml has error
问题 i have a string that i want to export on excel file with openxml component in C#. My text has '\u001f' character and openxml has error with this character. error text: "hexadecimal value 0x1f, is an invalid character". i copy that test directly to excel and no problem and copy is success. Does OpenXml have configs for solving this problem or How i can solve this problem. thanks. 回答1: You need to write it using the format _xHHHH_ where H represents a hexadecimal character. In your particular