Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CEdit -> show messages in all languages.

CEdit -> show messages in all languages.

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Suyash
    wrote on last edited by
    #1

    I need to enable a a single CEdit control to show messages from all the languages english, chinese, german, hindi etc, in other terms I wish to make edit control unicode enabled. 1. I create a unicode text(.txt) file, and enter characters from German language like "ÖÄß" etc, and few characters from hindi language "सवबहठ". 2. I read this file using CStdio class, and try to print these characters in my edit control, however i find that string shown on the edit control is "ÖÄß?????". What am I missing ? what could be done to make it work correctly. Do I need to find a font which supports all the languages in the world and assign this font to my edit control ? Thanks in advance! Regards Suyash

    J 1 Reply Last reply
    0
    • S Suyash

      I need to enable a a single CEdit control to show messages from all the languages english, chinese, german, hindi etc, in other terms I wish to make edit control unicode enabled. 1. I create a unicode text(.txt) file, and enter characters from German language like "ÖÄß" etc, and few characters from hindi language "सवबहठ". 2. I read this file using CStdio class, and try to print these characters in my edit control, however i find that string shown on the edit control is "ÖÄß?????". What am I missing ? what could be done to make it work correctly. Do I need to find a font which supports all the languages in the world and assign this font to my edit control ? Thanks in advance! Regards Suyash

      J Offline
      J Offline
      jayart
      wrote on last edited by
      #2

      I am trying the same thing. I tried changing the font of the edit ctrl for the current font for which the character belongs. But this will make the string look like ÖÄß????? and then make it ???सवबहठ. So I guess CEdit is of no help. I tried CRichEdit Control. But this doesnt support unicode atall. Can any one help?

      S 1 Reply Last reply
      0
      • J jayart

        I am trying the same thing. I tried changing the font of the edit ctrl for the current font for which the character belongs. But this will make the string look like ÖÄß????? and then make it ???सवबहठ. So I guess CEdit is of no help. I tried CRichEdit Control. But this doesnt support unicode atall. Can any one help?

        S Offline
        S Offline
        Suyash
        wrote on last edited by
        #3

        Arti, I tried CRichEdit Control. by default it doesn't support unicode. l_pWnd->Create( _T( "RichEdit20W" ), NULL, in_dwStyle, in_rcRect, in_pParentWnd, in_nID ); please note "RichEdit20W" which makes the CRichEditControl unicode enabled, by default its "RichEdit" hope it helps. regards suyash

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups