[Lazarus] UTF-8 string recognition

Antônio antoniog12345 at gmail.com
Sun Feb 28 10:28:38 CET 2010


I refer to a text loaded in a SynEdit by the user in which I need to
make some string manipulations.

Antônio

2010/2/28 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> 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
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>




More information about the Lazarus mailing list