[fpc-pascal] Weird string behavior

Bart bartjunk64 at gmail.com
Sat Jul 23 00:29:32 CEST 2016


On 7/22/16, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:

>>   ResultA := AnsiToUTF8(AnsiStrA + AnsiStrA);  // UTF-8   ResultB :=
>> AnsiToUTF8(AnsiStrA) + AnsiToUTF8(AnsiStrA); // Win-1252
>>
>>
>> And resultA is not equal to ResultB
>>
>> It doesn't look like too intuitive.
>
> It would be good if someone with access to Delphi 2009+ could test this.

I asked on Dutch Delphi forum if someone could test with D2009 or up.

Bart



More information about the fpc-pascal mailing list