[fpc-pascal] weird printout of char
ik
idokan at gmail.com
Mon Nov 5 15:44:42 CET 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 א
> end.
> ----------
>
> [snip]
>
> What am I missing or doing wrong ?
>
>
> a) add "uses cwstring" to get a full unicodestring manager in your program
When using cwstring, it writes $ED $9E $90 $0A
The Only correct char here is $0A (\n).
> b) the unicode code point for א is $05d0, not $d790
I'm trying to use UTF-8, not UTF-16 ($05d0 is UTF-16 values)
>
>
> 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