Re: [fpc-pascal] Re: Real length of WideString

2010-10-20 Thread Felipe Monteiro de Carvalho
On Thu, Oct 21, 2010 at 2:28 AM, Zaher Dirkey wrote: > var >   ws: widestring; > begin >   ws:= 'زاهر'; >   Label3.Caption := inttostr(length(ws)); > //= 8 Here the compiler assumes that your source code is encoded in the default system encoding and then it converts your string to utf-16. Probabl

[fpc-pascal] Re: Real length of WideString

2010-10-20 Thread Zaher Dirkey
On Thu, Oct 21, 2010 at 1:41 AM, Zaher Dirkey wrote: > How to get the real length of WideString variable. > > Hmm, I think i found my problem but not understand it, i used Lazarus as editor to write the code var ws: widestring; begin ws:= 'زاهر'; Label3.Caption := inttostr(length(ws)); //=