There is a way to do something like this?
char foo[] = "HOLA Ñ MUNDO";
int coord = -1, i = 5;
printf("%c\n",foo[i]); //Always return "�"
if (foo[i] == 'Ñ')
coord = 14; //It's like A is the first letter of alphabet, B is the second one, and so on...
printf("coord:%d\n",coord); //Always return -1, so, foo[i] != 'Ñ' (but it is...)
I tried using #include <locale.h> and calling the function setlocale(LC_ALL, "spanish"); but it doesn't work.