Forum > General

Text length in UTF8

(1/1)

typo:
What function should I use to get the correct length of a text in UTF8?

Thanks.

theo:
unit LCLProc UTF8Length

typo:
Is there any way to determine if the string is UTF-8 or not?

typo:
By the way: Is there any way to set a text format in a SynEdit  to all text you load or paste on there?

theo:

--- Quote from: typo on February 26, 2010, 09:20:23 pm ---Is there any way to determine if the string is UTF-8 or not?

--- End quote ---

You can try this function in LConvEncoding

if GuessEncoding(s)=EncodingUTF8 then...

Navigation

[0] Message Index

Go to full version