Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How to show unicode characters using resource file

From Wiki
Jump to: navigation, search
Article Metadata
Article
Created: rathodavinash (28 Jun 2007)
Last edited: hamishwillee (25 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 25 July 2012, at 22:53.
31 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×