How to display special charecters like € and line feed symbol
| Thu, 2008-06-19 08:26 | |
|
Hi, _LIT(KEuro,"€"); But on emulator the charecter does not show as it is, instead it prints a rectangular charecter. Please suggest how to draw charecter as it is. |
|






Forum posts: 1157
Maybe not the best or simplest way to do it, but worked for me:
TChar iEuroChar=TChar(0x20AC);TBuf<1> iEuroString;
iEuroString.Append(iEuroChar);
René Brunner
Forum posts: 708
And when you see the rectangle, then it means that the font (file) in use (or the default system font, if you're not specifying one yourself) does not have a glyph that corresponds to the codepoint.
Forum posts: 4
thanks rbrunner,
ur solution worked.
Now i want to show enter symbol (symbol present on enter key of the computer keyboard),
So do u have any idea about its unicode value?
Thnks..
Forum posts: 1157
On a Windows PC, you can use the CharMap utility to explore Unicode fonts and hunt for characters and symbols (C:\Windows\System32\CharMap.exe).
Note, however, that there is no guarantee whatsoever that a font on the phone will offer the symbol that you want, and in case of a missing character you will get boxes, as N/A explained already.
Fonts on phones tend to offer rather few characters and symbols, because of space restrictions.
René Brunner