[fpc-devel] Delphi incompatible encoding
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Dec 2 13:07:57 CET 2014
On Tue, 02 Dec 2014 11:32:13 +0100
Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:
> Mattias Gaertner schrieb:
> > On Tue, 02 Dec 2014 04:05:59 +0100
> > Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:
>
> > Many things affect string literals. Source codepage, system codepage,
> > string type, defaultsystemcodepage, library, compiler version.
> >
> > I started a table for UTF-8 literals:
> > http://wiki.lazarus.freepascal.org/Character_and_string_types#String_constants
>
> Thanks, after some reading I changed the sourcefile encoding, and both
> UTF8bom and Ansi provide correct results. The Lazarus default (UTF-8
> without BOM) is not usable on Windows :-(
You need to add conversions.
With the new DefaultSystemCodePage many of them are no longer needed.
Mattias
More information about the fpc-devel
mailing list