• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

CEdit doesn't display all symbols

In a standard appwizard project, CEdit doesn't display special characters like the trademark sign. Instead it displays a rectangular box in its place. Does anyone know how to get it to display special characters like the trademark sign?
1 Solution
Hi MrNoName,

I think this simply maybe a question of the selected font.
Does the font used for the edit control have a character for
such trademark sign?

I think , I insist on the fact that it would be a suggestion , that this trouble occurs when you don't specify the Unicode support ( see Unicode topic into MSDN doc )

You should use the CEdit with _T() formatting :

Using COM BSTR or _bstr types should also another solution
MrNoNameAuthor Commented:
Hi Zoppo,

I'm using the font "MS Sans Seriff" -- which I'm sure is the default font for many programs...programs that are able to display the trademark sign.

Are your edits able to display the trademark sign?
Use the ALT code: 00153.
Hold the ALT key down then type 00153 one by one.
If it is able to display ™, then please tell how you handle your edits.

 I did a little test

      CString cs,ds;
    for (int i=0; i<256;i++)
          ds.Format ( "%c", i );
          if (i % 25 == 0)

     m_edtOne.SetWindowText ( cs );

  This outputs all the chars to an edit box and I see the trademark sign! Run this in your app and see what characters are available.
MrNoNameAuthor Commented:
Hey guys...I changed the font from San Serif to Arial and I can now see the TM character...seems Zoppo was right. Thanks.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now