I'm doing a homework from school in C++. Currently, I'm doing an exercise of creating a system of books library.
Everything is working perfectly, but if I type something with accents, the input didn't work very well...
void searchBook() {
     std::string title;
     cout << "Book name: " << endl;
     std::getline(std::cin >> std::ws, title); // this will get book name, even with whitespaces
     cout << title;
     ...
}
For example: If I type: "O senhor dos anéis", the "cout << title" will show: "O senhor dos an'eis" on console.
How can I solve it? Thank you.
