I have trouble printing some special characters to the terminal using C. But I can do it with python. I think it has something to do with the encoding, like UTF-8.
ref: https://www.codetable.net/hex/c9
#include<stdio.h>
const char *a = "\xc9";
int main(){
printf("%s\n", a);
}
output:
PS C:\Users\xxx> gcc a.c -o a.exe
PS C:\Users\xxx> .\a.exe
?
a = 0xc9
print(chr(a))
output:
PS C:\Users\xxx> python a.py
É