I am having a weird problem here. I am reading in a csv and one of the values is an *. When I log the value to the console, I see an * logged, but if I try to something like
string[] s = line.Split(delims);
Debug.Log(s[2] + " " + s[2].Equals("*"));
The output I get is
* false
From the logs, s[2] is clearly *, but Equals isn’t working. I thought I might need to escape the * with a , but that won’t compile.
I even tried to check the encoding with
Debug.Log(System.Text.Encoding.ASCII.GetBytes(s[2])[0] + " " + System.Text.Encoding.ASCII.GetBytes("*")[0]);
And both print out 42!