I want to be able to print out (and read in) characters with accents
(for example French and Italian text). So far I have this:
std::locale lang (getenv ("LANG"));
which seems to set the locale correctly, say to it_IT.utf8 (on UNIX).
However, when reading in text from a file using:
std::string input;
std::copy (istream_iterator<char> (file), istream_iterator<char> (),
back_inserter (input));
and then using std::cout at certain subscripts or indicies within the
string the ones with accents appear like this:
<A0>
<A8>
etc.
What am I doing wrong? What to I need to do in order to process the
text correctly?
Thanks
James Vanns