[fpc-pascal] Problem with StrMove() in a unit compilable in FPC and Delphi

silvioprog silvioprog at gmail.com
Thu Feb 25 20:31:49 CET 2016


On Thu, Feb 25, 2016 at 4:28 PM, silvioprog <silvioprog at gmail.com> wrote:

> On Thu, Feb 25, 2016 at 3:47 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>
> wrote:
>
>> On 25/02/16 19:31, silvioprog wrote:
>>
>>  So, is the FPC StrMove() function compatible with the Delphi one?
>>
>> This has nothing to do with StrMove, since clearly the original string is
>> already different. If you compile your source code in Delphi with
>> --codepage=65001, it should give the same result as with FPC and {$codepage
>> utf8}.
>
>
> Indeed. But, what I need to do? Because this code below still returning
> "L: 3 - 97 195 163":
>

Oh, just changed the source encoding and now it works fine. ^^'

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160225/41d521be/attachment.html>


More information about the fpc-pascal mailing list