On Mon, 16 Jul 2007, Felipe Monteiro de Carvalho wrote:

> On 7/16/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
> > I think the Label.Caption string is an Ansistring ?
> 
> Yes
> 
> > Then it will already have the special characters
> > stripped at the point where you set
> > Label1.Caption := MyStr;
> >
> > So the special characters are not even passed to SetText ?
> 
> Why would it have them stripped? The compiler executed conversion
> between UTF8String and ansistring?

What do you think that is ? By default all special characters are 
simply stripped. And how is UTF8String defined ? As far as I know,
the compiler does not know a UTF8String native type. It's just an
alias for AnsiString ?

> 
> My last experience showed that the compiled treats utf8string and
> ansistring exactly equaly (never test conversion from one to the
> other, however)

It's simply tested.

Var
  S : String;
  T : UTF8string;

begin
  T:='something with special chars';
  S:=T;
  T:=S;
  Writeln(T);
end;

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to