Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How can I write a é symbol for a C++ program?
I got this code I wrote:
#include <iostream>
#include <string>
using namespace std;
void me (string name) {
cout << name << endl;
}
int main() {
me("éste");
return 0;
}
And it works fine, but after compiling and running the program I'm getting: Θste
1 Answer
- RatchetrLv 71 decade agoFavorite Answer
The problem isn't with your program, it's with the code page your command prompt is using.
Assuming this is Windows:
Open a cmd prompt and run chcp. That will tell you what code page you are using.
It's probably 437. That was the original IBM DOS code page (at least in the US).
Now, to change the code page:
chcp 1252
Run your program. Does it display properly now?