How to show unicode characters using resource file
Article Metadata
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);


(no comments yet)