[fpc-devel] Delphi incompatible encoding

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Dec 2 08:31:23 CET 2014


Jonas Maebe schrieb:

> To get behaviour that is compatible with Delphi2009+, compile with 
> -Mdelphiunicode or {$modeswitch delphiunicode}.

Do you mean {$mode delphiunicode}?

Now I wonder about compilation at all.
When I compile a console program on the commandline, most strings are 
readable in the console (see previous answer). But when I compile using 
Lazarus, all strings (including UnicodeString!) are shown in unreadable 
UTF-8 encoding, regardless of $mode :-(

What causes this difference, and how to make strings readable in a 
(Lazarus compiled) console application?

Forgot to mention: everything on WinXP.

DoDi




More information about the fpc-devel mailing list