[fpc-pascal] How to know the encoding of a string?
Bart
bartjunk64 at gmail.com
Mon Oct 17 18:47:44 CEST 2016
On 10/17/16, Marcos Douglas B. Santos <md at delfire.net> wrote:
> Is there a way to know what encoding was used at a string?
>
> My system are receiving some files and I don't know the encoding.
> I would like to know and then, convert it.
As explained there is no certain way.
Lazarus comes with lconvencoding unit which has a guessencoding function.
Maybe this can be of some help to you?
(Ruling out a string is UTF8 (compatible) can be done 100%)
Bart
More information about the fpc-pascal
mailing list