I am reading text from a text file. The first line the text file should read is "Algood", and pay attention to spaaaaaace. In Notepad, it seems that there is spaaaaaa on this line, but it is not. When I test the 6th (zero index) character in Visual Studio QuickWatch, it looks like:
" "c
When I use the function Ascto get the ASCII code, it tells me that the ASCII code is 63. 63 is a question mark. But when I check if the string contains ASCII 63, it checks false. Thus, it seems that the string contains a character with ASCII 63 code, only it does not, it contains another character that checks as ASCII 63 code. This is a problem: I cannot delete a character if you do not know what to call it. I could delete the last character, but not every line in the text file contains that character.

Question: what is this symbol, if not a question mark, and how can I uniquely identify it in order to remove it?
source
share