[fpc-pascal] Default source encoding
Michael Van Canneyt
michael at freepascal.org
Thu Mar 31 14:14:14 CEST 2016
On Thu, 31 Mar 2016, Mattias Gaertner wrote:
> On Thu, 31 Mar 2016 13:52:54 +0200
> Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
>> On 31/03/16 13:46, Mattias Gaertner wrote:
>>
>> > According to
>> > http://wiki.freepascal.org/index.php?title=FPC_Unicode_support#String_constants
>> >
>> > "the constant strings are assumed to have code page 28591 (ISO 8859-1
>> > Latin 1; Western European)."
>> >
>> > Is this true?
>>
>> Yes.
>
> What happens on a Russian system cp1251 with a cp1251 AnsiString
> literal?
>
> writeln('Привет');
Careful, writing may change the codepage.
See
http://mantis.freepascal.org/view.php?id=29935
and the hint therein:
http://www.freepascal.org/docs-html/rtl/system/settextcodepage.html
Michael.
More information about the fpc-pascal
mailing list