[Lazarus] UTF-8 string recognition
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun Feb 28 09:21:58 CET 2010
On Sun, 28 Feb 2010 00:46:12 -0300
Antônio <antoniog12345 at gmail.com> wrote:
> There is no way to determine whether a string is in ANSI format or not?
In general: No, because every 8bit combination is valid.
In specific case: Not every combination makes sense. So you can write
heuristics.
You should save/define the encoding of a string. For example all
strings in the LCL are UTF-8.
Mattias
More information about the Lazarus
mailing list