Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Commented Unassigned: Problem with Symbols in Text Cells [9359]

$
0
0
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: Thank you for your sanity check MDeLeon! I ran simple "¡Hola Mundo!" tests and cannot repeat the problem. However, my main application does not work. My conclusion now is that this is not a ClosedXML problem, but probably a problem with my application. Maybe leave this issue Open a little longer until I solve the problem - in case it is of interest to anyone else experiencing this issue.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>