>What do others do in this situation? I use https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atstringproc_utf8detect.pas -- Regards, Alexey