[fpc-devel] Ansistring code page
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Thu Oct 13 20:36:05 CEST 2011
Jonas Maebe schrieb:
>
> On 13 Oct 2011, at 15:02, Paul Ishenin wrote:
>
>> Then use {$codepage UTF8} only. This directive treats all ansistring
>> constants in UTF8 codepage. So the next code:
>> {$codepage UTF8}
>> var
>> s: ansistring;
>> begin
>> s := 'utf8 string';
>> WriteLn(StringCodePage(s));
>> end.
>>
>> will output CP_UTF8 constant.
>
> This I don't really understand.
It should read
s: string;
DoDi
More information about the fpc-devel
mailing list