On Wed, 3 May 2017, Ondrej Pokorny wrote:
Michael, because I cannot comment on a closed issue report I post my
answer to https://bugs.freepascal.org/view.php?id=31746#c100091 here:
> I don't think what you write is correct. As far as I can see in the
code of Delphi Berlin: Delphi uses
Michael, because I cannot comment on a closed issue report I post my
answer to https://bugs.freepascal.org/view.php?id=31746#c100091 here:
> I don't think what you write is correct. As far as I can see in the
code of Delphi Berlin: Delphi uses always the defaultsystemcodepage for
text files,
On 03.05.2017 9:07, Petr Kristan wrote:
Try:
Writeln(UTF8ToSys('ÄäÖöÜüß'));
No, it doesn't help.
I debugged into the issue and found out that the exported file was in
DOS-850 encoding (the same as the console lived in). Delphi changes the
output encoding to "DefaultSystemCodePage" if
On Wed, May 03, 2017 at 08:34:14AM +0200, Ondrej Pokorny wrote:
> Hello,
>
> I have a simple FPC program:
>
> ---
> program GermanTest;
>
> {$codepage utf8}
> begin
> Writeln('ÄäÖöÜüß');
> end.
> ---
>
> If I run it in the console, I see correct characters:
>
> BUT when I redirect the
On 3 May 2017 at 14:34, Ondrej Pokorny wrote:
> > BUT when I redirect the output to a file with ">" :
> GermanTest.exe > GermanTest.txt I get corrupted characters
> "Ž„™”š á" (see attachment).
When I open the attachment on my PC, I see the correct characters:
[image: Inline