I am trying to insert the Unicode character U+2022 (bullet •) in my C++ application.
I can’t figure out how to convert that U+2022 to a char/string for use in std::string constructor…
char bullet = char(0x2022);
mPassword.SetText( std::string(mText.length(), bullet) );
This one doesn’t work. Hope you can help !!
Thanks
opatut
Unicode character has type
wchar_t(see §2.13.4 of the C++ Standard). You could use it as follows:In string it will look like: