Edit Control-> show messages in all languages.

I need to enable a single Edit control to show messages from all the languages english, chinese, german, hindi etc, in other terms I wish to make edit control unicode enabled.
1. I create a unicode text(.txt) file, and enter characters from German language like "ÖÄß" etc, and few characters from hindi language "सवबहठ".
2. I read this file using CStdio class, and try to print these characters in my edit control, however i find that string shown on the edit control is "ÖÄß?????".

I tried changing the font of the edit ctrl for the current font for which the character belongs.
But this will make the string look like ÖÄß????? and then make it ???सवबहठ.
So I guess CEdit is of no help.
I tried CRichEdit Control. But this doesnt support unicode atall.
Can any one help?

What am I missing ? what could be done to make it work correctly. Do I need to find a font which supports all the languages in the world and assign this font to my edit control ?


Thanks in advance!
Regards
Suyash
gauravit_1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mahesh1402Commented:
refer this

"How to Display UNICODE Characters in a CListCtrl or a CEdit"

http://www.codeguru.com/cpp/cpp/cpp_mfc/general/article.php/c10285/

MAHESH
0
AlexFMCommented:
Most fonts really support all the languages in the world, you can see this in Character Map application. Just try Courier New for example.
Is your application Unicode? Maybe you loose information reading text file? Try to type inside Editbox in different languages - what result do you have?
0
gauravit_1Author Commented:
Thanks Mahesh,
However I needed unicode support for CRichEditCtrl.

Alex,
I tried CRichEdit Control. by default it doesn't support unicode.

l_pWnd->Create( _T( "RichEdit20W" ), NULL, in_dwStyle,
in_rcRect, in_pParentWnd, in_nID );

please note "RichEdit20W" which makes the CRichEditControl unicode enabled, by default its "RichEdit"
0
mahesh1402Commented:
Here 'SendMessageW' is used for CRichEditCtrl

http://www.codeguru.com/Cpp/misc/misc/windowsmessaging/article.php/c10251/ <====

MAHESH
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.