On 24-6-2012 20:38, Mattias Gaertner wrote:
> On Sun, 24 Jun 2012 15:14:36 -0300
> Luiz Americo Pereira Camara <luiz...@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!

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to