I want to display the infinity symbol ∞
which has Unicode U+221E
. I am currently using the fmt library, it is supposed to have a lot of support and be cross-platform.
fmt::print("", fmt::styled("∞ >", fmt::emphasis::bold | fg(fmt::color::aquamarine)));
I get the following output:
? >
I also tried setting: setlocale(LC_ALL, "en_US.UTF-8");
doesn't help. I am on Windows 11 x64.
WARNING:
warning C4566: character represented by universal-character-name '\u221E' cannot be represented in the current code page (1252)
MS Visual Studio 2022 IDE.
Should I change the Character Set, in project properties? Currently set to: Use Unicode Character Set, second option is: Use Multi-Byte Character Set.