Home |
Applying Custom Character Filters Defining Unicode Strings |
Defining Unicode StringsIf you decide to use Unicode, you will need to define and initialize your string data such that it is recognized as an array of 16-bit variables. A few compilers have built-in support for this type of data entry, but even in these cases you cannot enter Unicode-formatted strings that use characters above the printable character range using the standard C++ double quoted string syntax. The easiest way to create your Unicode strings is to allow WindowBuilder or MkStrTab to generate them for you. If you need to enter your own Unicode format strings, the most portable method is to enter the strings as PEGCHAR arrays, as shown below: PEGCHAR TestString[] = { 'H', 'e','l','l','o', ' ', 0x209, 0x210, 0x224, 0 }; In this example, we have mixed a few characters from the ASCII range with a few characters that are only available in the extended Unicode character set. Applying Custom Character Filters
|