Stefano
Stefano

Reputation: 113

MFC - Sample edit box Arabic charset

I'm here again with a question related to MFC and Arabic Charset. I created a PropPage with some Sample Edit Box in order to get user's input trying this:

CString userName;
inputName.GetWindowText(userName);

where inputName is a CEdit variable associated to a single Sample Edit Box. If I put in this box a string in Western encoding everything is fine while when I try to write something with Arabic keyboard or put some Arabic text, in userName variable I get only a string like "????"

The Solution's Character Set is Multi-Byte. How can I get the arabic string?

Thanks for any help.

Upvotes: 1

Views: 427

Answers (1)

MoBaShiR
MoBaShiR

Reputation: 440

Go to project properties set character set to Unicode Character set.

Upvotes: 1

Related Questions