Printing UTF-8 in C

Printing UTF-8 in C

Eli Zaretskii eliz at gnu.org
Sun Jan 12 20:44:43 IST 2014


> From: Ori Idan <ori at helicontech.co.il>
> Date: Sun, 12 Jan 2014 20:34:07 +0200
> 
> 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.

Is the C source stored on disk in UTF-8 encoding?



More information about the Linux-il mailing list