[Lazarus] Guessing the encoding of some text
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Nov 16 15:20:49 CET 2017
On Thu, 16 Nov 2017 14:02:57 +0300
Alexey via Lazarus <lazarus at lists.lazarus-ide.org> 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
More information about the Lazarus
mailing list