[fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

Reinier Olislagers reinierolislagers at gmail.com
Sun Jun 24 21:11:06 CEST 2012


On 24-6-2012 20:38, Mattias Gaertner wrote:
> On Sun, 24 Jun 2012 15:14:36 -0300
> Luiz Americo Pereira Camara <luizmed at oi.com.br> wrote:
>> Em 24/6/2012 12:22, Reinier Olislagers escreveu:
>>> On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote:
>>> // Takes care of conversion...
>>> S:=WideChar(StrToInt('$'+S));
>>> to:
>>> // Convert from Unicode codepoint in hex to UTF8... via UTF16:
>>> S:=Utf8Encode(WideString(WideChar(StrToInt('$'+S))));
> 
> or more direct:
> 
> using lazutf8:
> 
> S:=UnicodeToUTF8(StrToInt('$'+S));
> 
Thanks, Mattias & Luiz!




More information about the fpc-pascal mailing list