printing non-ASCII characters (in unicode)

This is a discussion on printing non-ASCII characters (in unicode) within the C Programming forums, part of the General Programming Boards category; I was trying to write a program that needed to output characters in Cyrillic, and someone (Fordy?) suggested unicode. What ...

printing non-ASCII characters (in unicode)

I was trying to write a program that needed to output characters in Cyrillic, and someone (Fordy?) suggested unicode. What I intend to do with this program is to "rekey" a keyboard so that on keypress the output to the screen would be according to my own layout (ex: when 'H' is pressed the output would be Cyrillic letter 'X' and so on).

first, I'm not sure whether I'm doing this right, but as I understand, Unicode would be in hex (0x0000), right? Here's my code:

Now, for some reason I am unable to get anything displayed this way in Cyrillic, while if I did the same for Latin characters (according to the same table) it works just fine. My guess that the problem lies not in my use of the table but in putchar();

Is it correct to guess that putchar() simply doesn't have the capability to print out non-ASCII characters?