Recognizing the Unicode environment Top How does it work? So what do you need to do?

So what do you need to do?

You need to make sure that all text rendered is encoded in UTF-8. In particular, nearly all literal text in your program must be UTF-8 encoded. In a well-written program all literal text is in the resource file, so this amounts to providing a UTF-8 encoded resource file. You will probably want to have the resource file translated into the language of the target market(s), but even if you stick to English menus for the moment, you will need to provide a new resource file that uses the UTF-8 encoding (unless you are very careful to use only ASCII in the English text).

If your program accepts text input, you need to verify that all text input is done through controls derived from CEikEdwin (i.e. CEikEdwin, CEikGlobalTextEditor, CEikRichTextEditor). If your program composes text by processing keystrokes itself, users will not be able to compose Unicode characters with the front end processor.

Note that you do not need to link with any special libraries--whether or not your application will run in a Unicode environment depends on whether UniFEP is installed and activated on the user's system.

In most cases you will want your application to run correctly both with and without Unicode support. This is not very difficult to achieve, you mostly need to provide separate resource files.


Otfried Cheong and Enfour, Inc. VersionĀ 2.59, December 31, 2000.

Recognizing the Unicode environment Top How does it work? So what do you need to do?