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

2010-10-21 Thread Felipe Monteiro de Carvalho
On Thu, Oct 21, 2010 at 2:28 AM, Zaher Dirkey parm...@gmail.com 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

[fpc-pascal] Re: Real length of WideString

2010-10-20 Thread Zaher Dirkey
On Thu, Oct 21, 2010 at 1:41 AM, Zaher Dirkey parm...@gmail.com 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 :=