visual studio 2010 - How to insert check mark "✓" in std::string in c++ programming using VS2010 -


in 1 of application i'm developing in c++, have display "✓" mark. need first insert same in std::string or in char. when that, i'm getting "?" mark output. i'm using vs2010 code. please suggest how solve same. in advance.

there seems basic misunderstanding.

the checkmark character unicode 0x2713. cannot store single character in std::string. maximum value char 0xff (255). won't fit.

if developing gui using c++ windows guess mfc. if using std::string perhaps that's not so. choices:

  1. for mfc, can rebuild application in unicode mode. chars short (16 bits) , checkmark fit fine.
  2. you use std::wstring instead of string. means changes existing code.
  3. you use utf-8, replaces character multi-byte sequence. not recommended in windows, if think know you're doing. unfriendly.

in case, if using gui , dialog boxes have make sure unicode dialog boxes or nothing work.

with few more details, give more specific advice.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -