[fpc-pascal] Delphi / FPC and UTF8 BOM

Zaher Dirkey parmaja at gmail.com
Sat Oct 18 16:32:59 CEST 2008


I notice UTF8 from Delphi not Compatible with Lazarus/FPC and vise versa.
It Corrupt the characters.

On Sat, Oct 18, 2008 at 4:12 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 18 Oct 2008, at 14:38, Zaher Dirkey wrote:
>
>> Hi, i have some units shared between 2 Project First in Delphi 2007
>> and the second in Lazarus for Wince
>> for unicode support on WinCE i converted my my files to UTF8, but i
>> discovered that Delphi not take my local language in shared units as
>> will, and if convert the files in Delphi IDE it work in Delphi but
>> lazarus not take my strings.
>> Delphi take UTF8 with BOM mark, Lazarus Without BOM.
>
> FPC automatically sets the input encoding of the scanner to utf-8 when it
> encounters a BOM.
>
>
> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



-- 
Zaher Dirkey



More information about the fpc-pascal mailing list