According to the chart here:
http://www.idautomation.com/barcode-faq/code-128/
This character:
Ë
equates to the value 103.
Yet this code:
string barcode = textBoxRawCode128.Text.Trim();
. . .
int runningTotal = ConvertToASCIIInt(barCode[0]);
. . .
private int ConvertToASCIIInt(char valToConvertToASCII)
{
const int ASCII_ADJUSTMENT_VAL = 32;
return valToConvertToASCII - ASCII_ADJUSTMENT_VAL;
}
...when the value in the textbox and thus of barcode is "ËTry another string.", thus where barcode[0] is "Ë", returns a value of 171 instead of 103...???
And according to this chart: http://www.adams1.com/128table.html, the value corresponding to 103 is ‡, but when I set barCode to "‡Try another string.", the returned value is 8193...??? Curiouser and curiouser...
Note: A related/preliminary post is Is this code for calculating Code128 barcode check digits correct?
Ë
(your link). But .NET does not use USS Code-128 Character Set, instead it uses Unicode. In Unicode the codepoint is hexadecimal00CB
, see the same table or the official Unicode chart. You might need a tool that converts between Unicode and USS Code-128 Character Set. – Kong