For example:

var
  i :integer;
  s :utf8string;
begin
  for i := 0 to utf8klength(s) do
  begin

     // What the meaning of s[i] at this position?

  end;
end;

Antônio

2010/3/27 Antônio <[email protected]>:
> How do I parse a utf8 string?
>
> Antônio
>
> 2010/3/27 Mattias Gaertner <[email protected]>:
>> On Sat, 27 Mar 2010 14:46:39 -0300
>> Antônio <[email protected]> wrote:
>>
>>> I need to convert characters to numbers and I thought on a character
>>> table  or something.
>>
>> unit LCLProc has this UTF8 function:
>>
>> UTF8CharacterToUnicode
>>
>>
>> the system unit has this:
>>
>> Utf8ToUnicode
>>
>>
>> Do a find declaration to see the many UTF8 functions.
>>
>> Mattias
>>
>> --
>> _______________________________________________
>> 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

Reply via email to