Probably because your browser is normalizing the unicode string when youcopy-n-paste Vladimir's message? See below:
Just for curiosity I tried it with C# to see how it is handled there and it works like this:
using System;
using System.Diagnostics;
namespace Test
{
class Program
{
static void Main()
{
var s = "cassé";
Debug.Assert(s.IndexOf('é') < 0);
s = s.Normalize();
Debug.Assert(s.IndexOf('é') == 4);
}
}
}
So it's neither work by default there and Normalize has to be used
