[fpc-pascal] weird printout of char
ik
idokan at gmail.com
Mon Nov 5 17:05:39 CET 2012
On Mon, Nov 5, 2012 at 5:38 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> 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.
you are right, sorry.
All work and not enough sleep ... :)
>
>
>
> Jonas
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list