Hello, guys! Can you help me with a problem, please?
I use C on Ubuntu.
When I try to print a single Cyrillic symbol with '\n' (or any other symbol) at the end I get '?' in terminal, with ASCII symbols all is right.

If I print Cyrillic symbols in a raw (without '\n') - I get ? only at the end of the string.
I use C on Ubuntu.
When I try to print a single Cyrillic symbol with '\n' (or any other symbol) at the end I get '?' in terminal, with ASCII symbols all is right.

C:
char buff[255] = "хай, man";
for (int i=0; i<(strlen(buff)); i++) {
printf("%c\n", buff[i]);
}
Last edited: