×
Namespaces

Variants
Actions
Revision as of 01:53, 26 July 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to show unicode characters using resource file

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: rathodavinash (28 Jun 2007)
Last edited: hamishwillee (26 Jul 2012)

The following article shows how to show unicode characters using just the resource file. For example to show a character "↑" the following steps are required

  • Create a file arrow.loc, using notepad
CHARACTER_SET UTF8
#define qtn_arrow "↑"
  • Get the symbol you want from the 'character map' application on windows.

Save the file in the UTF-8 format. i.e. in notepad do "Save As" and in format choose UTF-8.

  • Include in rss
#include "arrow.loc"
-
-
-
RESOURCE TBUF r_arrow
{
buf = qtn_arrow;
}
  • Cpp code to show the character
TBuf<20> myarrow;
iEikonEnv->ReadResource(myarrow,R_ARROW);
This page was last modified on 26 July 2012, at 01:53.
46 page views in the last 30 days.
×