[Lazarus] Unicode support enabled for win32 with fpc 2.2.1 and higher

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Apr 21 23:26:53 CEST 2008


On Mon, Apr 21, 2008 at 4:27 AM, Luca Olivetti <luca at wetron.es> wrote:
>  Answering to myself: in my copy of lazarus ("ancient" snapshot
>  2008-06-23)/fpc those functions are defined in wstringh.inc, *not* in
>  LCLIntf as the wiki says, and they simply call utf8encode/utf8decode

You are right. They were previously in LCLIntf, but were added to the RTL.

UTF8Encode converts from utf-16 to utf-8

utf8decode converts from utf-8 to utf-16

You can use them if you are using widestrings.

-- 
Felipe Monteiro de Carvalho



More information about the Lazarus mailing list