Not every ansi string is a valid UTF8 string, but every UTF8 string is a valid ansi string. So you can be sure that a string is not a valid UTF8 string, if it's a valid, it could be a UTF8 or an ansi string.
You can make some guess, for latin alphabet (western or eastern), if it is a valid UTF8 and it has several char(195) then probably you have an UTF8 string with several above char(128) characters. But you are just guessing, it could be an UTF8 with no acute or tilde letters, or it could be an ansi string with several char(195). El 27/02/2010 2:17, Antônio escribió: > How to determine whether a string is UTF-8 or not? > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
