Unicode to LMBCS

Hi,I am trying to convert nonascii Unicode string (containing english and japanese characters) to LMBCS. The translation takes place but non ascii characters don’t get rendered correctly. I am using following code to perform the same.

  WORD size = unicodeBodyText.size() * 2;

  char *pOut = new char[size];

  memset(pOut, 0, size);

  OSTranslate(OS_TRANSLATE_UNICODE_TO_LMBCS, (char *)unicodeBodyText.c_str(), size, pOut, size);

  LNString ln = pOut;

  rtBody.Append(ln);

  delete[] pOut;

where unicodeBodyText is of type std::wstring.

Any pointers.

Thanks

Subject: I am using C/C++ api

I am using C/C++ api