Printing UTF-8 in C
Dov Grobgeld
dov.grobgeld at gmail.com
Sun Jan 12 20:53:38 IST 2014
Writing hebrew to the terminal is a bad idea because terminals do not
support BiDi reordering.
That said, doing "cat small-hello.utf8"[1] works for me in gnome-term
(though it is reversed). No special environment variables were defined.
Regards,
Dov
[1] http://paps.sourceforge.net/small-hello.utf8
On Sun, Jan 12, 2014 at 8:34 PM, Ori Idan <ori at helicontech.co.il> wrote:
> I need to print several Hebrew characters (UTF-8) to the terminal.
> My locale is set to he_IL.UTF-8 so it shows Hebrew on the terminal,
> however printing from C gives me Chinese characters.
> My question is how to print one character such as 'א' to the terminal.
>
> --
> Ori Idan
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140112/fcfc77d2/attachment.html>
More information about the Linux-il
mailing list