0

I need to read a file that contains words with accents, for example:

João José Caminhão

I'm using the following function:

std::ifstream fs_file_to_send;
fs_file_to_send.open(file_path);
std::stringstream buffer;
buffer << fs_file_to_send.rdbuf();
std::string file_contents;
file_contents = buffer.str();
std::string result = file_contents;
fs_file_to_send.close();

But I have the following return:

Jo├úo Jos├® Caminh├úo

0 Answers0