Why is my ASCII char to int conversion failing?
问题 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]