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

Luca Olivetti luca at wetron.es
Mon Apr 21 09:27:11 CEST 2008


En/na Luca Olivetti ha escrit:
> En/na Felipe Monteiro de Carvalho ha escrit:
>> On Fri, Apr 18, 2008 at 7:11 PM, Lee Jenkins <lee at datatrakpos.com> wrote:
>>>  Sorry to be so ignorant on the subject, are you saying the calls to RTL
>>>  fileutils need to have the "strings" cast to UTF-8 somehow?
>> I just made a small wiki guide:
>>
>> http://wiki.lazarus.freepascal.org/LCL_Unicode_Support#Instructions_for_users
> 
> Mmmh, so I guess my using utf8encode/utf8decode instead of 
> Utf8ToAnsi/AnsiToUtf8 is wrong?

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

Bye
-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004      Fax +34 93 5883007



More information about the Lazarus mailing list