views:

66

answers:

0

Help, stuck wiht getting unicode text from RichTextBox in managed C++. I am trying to read rtb->Text into a CString object expecting to see something like: "\u33655?\u26538?\u23454?\u24377?\u30340?" The rtb->Text shows a proper Japanese characters but I cannot write them into a DB. So I need a wchar representation of the Japanese characters simillar as CRichEditCtrl shows.

When I do something straight forward like: CString str(rtb->Text); I get "???????" for each Asian character. Thanks, Lena