Re: special charater display

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



In article <uGYILEOVFHA.4056@xxxxxxxxxxxxxxxxxxxx>, kc2ine@xxxxxxxxx
says...
> Hi,
> I have problem with displaying diamond special character
> within a CString. It supposed to be decimal 4,
> so I tried "\4" but it displas vertical bar always, even with other special
> characters.

This sounds like the font you're using simply doesn't happen to have
a diamond (or anything else) at that code point. It sounds like
you're expecting to use the OEM character set, but getting an ANSI
character set.

Obvious choices are to choose a font with the OEM character set, or
to use an entirely different font that'll support the symbol you need
to display -- though this will often be at a different code point.
E.g. the Symbol font (which is part of a normal Windows installation,
IIRC) has a diamond at code point 0xA8 from the looks of things.

--
Later,
Jerry.

The universe is a figment of its own imagination.
.



Relevant Pages

  • Re: special charater display
    ... If he wants to show the diamond character on say an edit box, ... try using the Terminal font for the edit box. ...
    (microsoft.public.vc.mfc)
  • Font Transforms, JTextPane, and AttributeSet
    ... I wish to alter the appearance of a character ... using an AffineTransform on the font being used to display the text ... code sample that demonstrates the problem by displaying text using the ... unadjusted and adjusted font in JLabels and then in a JTextPane is ...
    (comp.lang.java.gui)
  • Re: Conditional formatting problem in A97
    ... and make them appear to be invisible stopped displaying a solid bar ... and starting actually showing the underlying character. ... several locations and stopped working in all of that forms controls, ... Actually, after looking closer at it, I did change the font. ...
    (comp.databases.ms-access)
  • Re: special charater display
    ... > If he wants to show the diamond character on say an edit box, ... > try using the Terminal font for the edit box. ...
    (microsoft.public.vc.mfc)
  • Re: How to translate a chinese character to unicode by using c#.net?
    ... so if his device is not displaying a character that's in ... therefore it's correctly displaying the data but the data is wrong. ... He's taking Unicode and converting to ASCII and expecting it to not lose ... Install the right font and it will work. ...
    (microsoft.public.pocketpc.developer)