For a console application, I need to display the symbol: β
When I try to just output it using:
std::cout << 'β' << std::endl; or
std::wcout << 'β' << std::endl; ,
he displays instead the number 14846106 .
I tried to find the answer and found some recommendations: std::cout << "\xFB" << std::endl; and
std::cout << (unsigned char)251 << std::endl;
which both display superscript 1.
This is a Windows console with Lucida font. I tried this with different character pages and always got the same superscript. When I try to find its value via getchar() or cin , the character is converted to uppercase V However, I am sure that it can display this symbol by simply inserting it. Is there an easy way to display Unicode characters?
source share