STEP 1: I have a text file, which has the following contents in different languages, and i saved the file by encoding format as "Unicode".
- Romanian: Pot să mănânc sticlă și ea nu mă rănește.
- Ukrainian: Я можу їсти шкло, й воно мені не пошкодить.
- Armenian: Կրնամ ապակի ուտել և ինծի անհանգիստ չըներ։
- Georgian: მინას ვჭამ და არა მტკივა.
- Hindi: मैं काँच खा सकता हूँ, मुझे उस से कोई पीडा नहीं होती.
- Hebrew(2): אני יכול לאכול זכוכית וזה לא מזיק לי.
- Yiddish(2): איך קען עסן גלאָז און עס טוט מיר נישט װײ.
- Japanese: 私はガラスを食べられます。それは私を傷つけません。
- Thai: ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ
STEP 2: I have created a project in MFC, VC++ environment which supports Unicode( changed in project settings to support Unicode). The project has a text box control. I want to display the above contents from the file in the textbox control in the project.
But if i display it. It is either showing as ???????? or every charcter is displayed as "box kindof" things. even i used MultiByteToWideChar and WideCharToMultiByte for converting. but still the same.
Note: Even if i copy the text & paste it in textbox, it is showing as ??????. If we copy paste in visual studio editor( any .cpp or .h file ), it can able to display properly.
Can u please suggest me for this.