I'll give you a simple example to explain my doubt:
#include <stdio.h>
#include <conio.h>
#include <locale.h>
main(){
setlocale(LC_ALL,"Portuguese");
char a;
printf("Insira um caractere especial,\nExemplos: ç, á, é, ê, ã, à...\n>>");
scanf("%c", &a);
printf("Você digitou '%c'", a);
getch();
return 0;
}
It does not consider the locale when reading the character of the user, I would learn to fix it! I have already been told that it is necessary to change the character encoding from DEV C ++ to UTF-8, does this information proceed? Because I did not figure out how to do this ...