I'm experiencing a problem when I assign a text value that contains a symbol in it to a cell.
For example: Cell(1,1).Value = "¡Oy Vey!";
The resulting cell in the worksheet displays a black diamond with a question mark in it where the extended character symbols should be.
When I look at a hex dump of the raw sharedStrings.xml file generated by ClosedXML, I cannot find the "¡" character or 0xA1 in hex in the file. Other extended characters do not work either.
I tried both Cell.Value and SetValue and with and without assigning the DataType to Text. All things I try have the same result.
I am new to ClosedXML, so perhaps there is a setting to enable it to not translate extended characters in text strings assigned to Cell values. I did not find anything related to this in the documentation.
//AJ
Comments: Display language: English (United States) Input Language: same Format: same Location: United States No problem typing symbols or copy pasting them in Excel, saving from Excel to XLSX files and loading them back. The problem is not Excel or the Region settings or Excel. What if I want to use other ASCII characters like the degree sign, etc.? I was using the stable version of ClosedXML. If it is working for you, is it possible this is fixed in the latest build?
For example: Cell(1,1).Value = "¡Oy Vey!";
The resulting cell in the worksheet displays a black diamond with a question mark in it where the extended character symbols should be.
When I look at a hex dump of the raw sharedStrings.xml file generated by ClosedXML, I cannot find the "¡" character or 0xA1 in hex in the file. Other extended characters do not work either.
I tried both Cell.Value and SetValue and with and without assigning the DataType to Text. All things I try have the same result.
I am new to ClosedXML, so perhaps there is a setting to enable it to not translate extended characters in text strings assigned to Cell values. I did not find anything related to this in the documentation.
//AJ
Comments: Display language: English (United States) Input Language: same Format: same Location: United States No problem typing symbols or copy pasting them in Excel, saving from Excel to XLSX files and loading them back. The problem is not Excel or the Region settings or Excel. What if I want to use other ASCII characters like the degree sign, etc.? I was using the stable version of ClosedXML. If it is working for you, is it possible this is fixed in the latest build?