I'm trying to work with hebrew chars in C++ , using Clion on mac.
char notification[140]={"א"}; //this is ALEF the first letter of Hebrew ABC.
for(int i=0; i < strlen(notification); i++) {
cout << (int)notification[i] << endl;
} //Here I want to see what is the ASCII code for this letter.
the output for this for is :
-41
-112
Though there is only 1 char entered.
cout << char(-41) << char(-112) << endl; // this one gives me the output of the letter ALEF
cout << char(-41) << char(-111) << endl; //gives the second letter of Hebrew ABC.
I can't understand how it works why there is 2 chars to present 1 hebrew char ?