How can I "cout" in C++ inside Visual Studio Output Window, this strings, now we have C++14 revision: (All i get is no symbols, or questions marks).
#include <iostream>
using std::cout;
int main()
{
cout << "Ñá" << ".\n"; //Spanish
cout << "forêt intérêt" << ".\n"; //French
cout << "Gesäß" << ".\n"; //German
cout << "取消波蘇日奇諾" << ".\n"; //Chinesse
cout << "日本人のビット" << ".\n"; //Japanese
cout << "немного русский" << ".\n"; //Russian
cout << "ένα κομμάτι της ελληνικής" << ".\n"; //Greek
cout << "ਯੂਨਾਨੀ ਦੀ ਇੱਕ ਬਿੱਟ" << ".\n"; //Punjabi
cout << "کمی از ایران " << ".\n"; //Persian
cout << "కానీ ఈ ఏమి నరకం ఉంది?" << ".\n"; //Telugu
cout << "Но какво, по дяволите, е това?" << ".\n"; //Bulgarian
cout.flush();
return 0;
}
Besides, what's the proper Visual Studio configuration to reach the goal to "cout" this strings properly? (Fonts able to show this characters, unicode settings, etc...).
As far as I know:
In the project properties>General, you must have "Character Set" to "Use unicode character Set".
In C/C++>Preprocessor, you must have Preprocessor definitions as UNICODE.
In VisualStudio menu of Tools>Options>Environment>Fonts and Colors, must use "Lucida Console", or "Consolas" fonts, in text editor and in Output Window, to get a font able to show the characters.
But this isn't enough.