On Mon, Nov 5, 2012 at 4:39 PM, Jonas Maebe <[email protected]> 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  -  [email protected]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to