It is not UNICODE -- its just a character from a special font. If you print that out (see below) you will see that it has a decimal value of -105.
int main()
{
char c = '—';
cout << c << " " << (int)c << "\n";
return 0;
}
So in your program just check for a character whose ascii value is -105 and change it to --.
At least that's how it works on an American keyboard and Vista Home. Other keyboards might be different, I don't know.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Online 21,949 posts
since Aug 2005