[Lazarus] Garbage writing to console
Luca Olivetti
luca at wetron.es
Fri Feb 23 10:56:11 CET 2018
El 23/02/18 a les 09:23, Mattias Gaertner via Lazarus ha escrit:
> On Fri, 23 Feb 2018 08:56:55 +0100
> Ondrej Pokorny via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
>> On 23.02.2018 8:46, Mattias Gaertner via Lazarus wrote:
>>> But this is a Lazarus issue.
>>
>> Why?
>
> Because the wiki page is unclear.
>
> writeln('áéí'); // works only with source codepage UTF-8
That's not enough, it has to be either utf8 with BOM or with {$codepage
utf8}
(Which has its own set of problems)
>
> s:='áéí';
> writeln(s); // works with and without
Correct, but I don't understand why
>
> writeln(UTF8ToConsole('áéí')); // works with and without
Yes, that works too.
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
More information about the Lazarus
mailing list