Function : OS Strings

OSTranslate - Translates a string to/from the native character set and LMBCS.
----------------------------------------------------------------------------------------------------------

#include <osmisc.h>

WORD LNPUBLIC OSTranslate(
WORD TranslateMode,
const char far *In,
WORD InLength,
char far *Out,
WORD OutLength);

Description :

OSTranslate translates a string between the specified character set and Lotus Multi-Byte Character Set (LMBCS) optimized for Group 1. The character set is specified in the TranslateMode parameter.

LMBCS optimized for Group 1 is the format used for all input and output to the API. (And is also the format in which all Domino and Notes strings are stored internally.)

LMBCS is composed of a set of character "groups", with the leading byte of each character indicating the group that the character is in. A string may be optimized for a particular group, in which case characters in that group are stripped of their initial byte.

Since Domino and Notes use LMBCS optimized for Group 1, every character in Domino and Notes is assumed to be in Group 1 unless it begins with a byte indicating otherwise. Japanese characters, for instance, are not in Group 1 so within Domino and Notes they begin with a byte indicating their group.

Parameters :

See Also :

OSLoadString
----------------------------------------------------------------------------------------------------------