[Lazarus] UTF-8 string recognition

JoshyFun joshyfun at gmail.com
Sat Feb 27 21:53:39 CET 2010


Hello Lazarus-List,

Saturday, February 27, 2010, 5:43:24 PM, you wrote:

A> Mainly from ANSI, but whatever.

You can not determine if a string is an UTF8 one, only if it is an
UTF8 well formed sequence. In other words, you can not detect if a
string IS an UTF8, only if it does not have UTF8 errors.

You can use the LCLProc FindInvalidUFT8Character function.

-- 
Best regards,
 JoshyFun





More information about the Lazarus mailing list