Hi ! First , thx a lot for this great work !
I'd like use ScintillaNET to develop an editor for training Chinese in Utf-8 format.
But , in my test , I found that , the internal Find&Replace cann't work right.
When I try to find a Chinese word , such as "企业", it will find it , but , the highting-selection in the edtior would be only half of the word.
However , I've found that , in the source file 'FindReplace.cs' , there is a setence like this:
return new Range(pos, pos + searchString.Length, Scintilla);
I thought, the problem may be that, 'searchString.Length' counted in Utf-8 format should be 2, but in byte-format should be 4.
I tried to change this sentence to be:
return new Range(pos, pos + Scintilla.Encoding.GetByteCount(searchString), Scintilla);
It doesn't work!
I'm a fresher for C# . If anyone could help me to find the real problem?
Thx a lot!