[fpc-pascal] weird printout of char

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Nov 5 16:38:33 CET 2012


ik wrote on ma, 05 nov 2012:

> On Mon, Nov 5, 2012 at 4:39 PM, Jonas Maebe  
> <jonas.maebe at elis.ugent.be> wrote:
>>
>> On 05 Nov 2012, at 15:25, ik wrote:
>>
>> I have a program like this:
>>
>> ---------
>> program print;
>> begin
>>  writeln(#$d790); // Should print א
[snip]
> I'm trying to use UTF-8, not UTF-16 ($05d0 is UTF-16 values)

#$XXXX means "define a widechar constant with this value", and  
widechars are always UTF-16. As mentioned in your later mail, if you  
want to define individual byte values, you have to define them as  
individual bytes.


Jonas



More information about the fpc-pascal mailing list