I need to make a program that reads and writes Greek letters. Since Greek is not in ASCII, I set the console locale to UTF-8. I managed to make some strings work in this multibyte mess, until i got to the part where i need user input
So,ill only post the problematic part
while(1) {
char inputc[50];
memset(inputc,'\0',50);
scanf("%s",inputc)
printf("%s",inputc);
}
With any greek character, this will print something different than the input. Also, if I do printf("%d",inputc[i]);
for each element to get the int value (says negative for greek letters), I get a different value than reading the same character from a literal.