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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem displaying characters above the normal ASCII Range

Problem displaying characters above the normal ASCII Range

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelptutorial
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.
  • T Offline
    T Offline
    TheDelChop
    wrote on last edited by
    #1

    Hello, I am working with an on-screen keyboard that was designed from scratch using the Win32 API, and it designed to be used with 4 or 5 languages. The keyboard works absolutely perfectly except when attempting to display some of the special characters for the other forgein languages(characters above 0x7F on the ASCII table). When I attempt to print these characters using the WM_CHAR message, the following character ÿ always appears before it. For example: If I were to press the "A" key, the edit box above the keyboard display "A". However, if I press the "Ö" button on the onscreen keyboard, the edit box about the keyboard displays "ÿÖ". I am totally stumped and was hoping anyone could provide any insight into why this is happening. Thanks in advance, Joe

    PJ ArendsP 1 Reply Last reply
    0
    • T TheDelChop

      Hello, I am working with an on-screen keyboard that was designed from scratch using the Win32 API, and it designed to be used with 4 or 5 languages. The keyboard works absolutely perfectly except when attempting to display some of the special characters for the other forgein languages(characters above 0x7F on the ASCII table). When I attempt to print these characters using the WM_CHAR message, the following character ÿ always appears before it. For example: If I were to press the "A" key, the edit box above the keyboard display "A". However, if I press the "Ö" button on the onscreen keyboard, the edit box about the keyboard displays "ÿÖ". I am totally stumped and was hoping anyone could provide any insight into why this is happening. Thanks in advance, Joe

      PJ ArendsP Offline
      PJ ArendsP Offline
      PJ Arends
      wrote on last edited by
      #2

      Post some relevant code, both where you send the WM_CHAR message and where you are recieving it. Are you doing UNICODE builds? ÿ is ascii 0xff, that should tell you something, but without seeing the code I can not tell you what.


      You may be right
      I may be crazy
      -- Billy Joel --

      Within you lies the power for good, use it!!!

      Within you lies the power for good; Use it!

      T 1 Reply Last reply
      0
      • PJ ArendsP PJ Arends

        Post some relevant code, both where you send the WM_CHAR message and where you are recieving it. Are you doing UNICODE builds? ÿ is ascii 0xff, that should tell you something, but without seeing the code I can not tell you what.


        You may be right
        I may be crazy
        -- Billy Joel --

        Within you lies the power for good, use it!!!

        T Offline
        T Offline
        TheDelChop
        wrote on last edited by
        #3

        I will try to post some code tomorrow, however, the keyboard procedure is pretty large, so I will try to post some relevent pieces.

        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