On Thu, 16 Nov 2017 14:02:57 +0300 Alexey via Lazarus <[email protected]> wrote:
> >What do others do in this situation? > > I use > https://github.com/Alexey-T/ATSynEdit/blob/master/atsynedit/atstringproc_utf8detect.pas That's checking if a zeroed string is valid UTF-8. GuessEncoding does that too, although it supports #0 chars in string. Mattias -- _______________________________________________ Lazarus mailing list [email protected] https://lists.lazarus-ide.org/listinfo/lazarus
