[Solved] Help with spellcheck style lazarus / 21-General ---------------------------------------------------------------------- Espectr0 · 2023-05-26 19:31 Hola, I have certain lines of text which I want to go through each word and then check them with a dictionary for example (like a spellcheck), but when showing the current word in TMemo (selecting it), there are words that it does not select properly... you can check the basic example attached and guide me to know what error I have ? Thanks! ---------------------------------------------------------------------- paweld · 2023-05-27 07:20 there are non-ASCII characters in the text, and then the length of such a character is greater than 1 byte (up to a maximum of 4 bytes).  Use a UTF8Length function instead of Length ---------------------------------------------------------------------- Espectr0 · 2023-05-27 10:04 Thanks @paweld!