In VS2012's C# the following code:
string test = "[ " + (char)0xFFFD + " ]";
System.Console.WriteLine("{0}", test.IndexOf(" ") == 1);
results in a
True
printed to console output window. The spaces are separated by 0xFFFD
yet it matches two consecutive spaces. Is that an expected result/feature or a (known) bug?
"[ \uFFFD ]"
contains" "
– Ballot