Resources | Resources |



Using complex languages in resource files

Complex languages include Chinese, Japanese, Korean, and other languages that use complex character sets and are read from left to right.

The cifc.exe compiler can handle resource files that contain text in complex languages, and display that text on a mobile device, if you follow these guidelines (which describe how to display Chinese characters but are applicable to all complex languages):

  • Enable complex languages on the Windows system where resource files are created, as follows:
    1. Click Control Panel and Regional and Language Options.
    2. Click the Languages tab.
    3. Select Install files for complex script and right-to-left languages (including Thai) and Install files for East Asian languages.
    4. Click Apply.
    5. Reboot the Windows machine.
  • Save the resource files (CIF or CAR) in UTF-8 format. Some text editors save UNICODE text as UTF-16 by default, so you should make sure that resource files are saved in UTF-8 format.
  • Specify that the data be encoded as 0x02 in the "data" field of the ModRsc or SysRsc primitive in the CIF or CAR file. For example:
    data = EncStringRscData(0x02, "Chinese")

    Brew MP encodings are defined in AEEEncodingTypes.h in the platform\system\inc directory.

  • Call IResFile_Open() or one of the IShell functions to open the resource file. IResFile_Open() will convert from UTF8 to UTF16 at run time.
  • Use a TrueType font or a device pack that supports Chinese characters to display the string.