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. Convert to Unicode

Convert to Unicode

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 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.
  • P Offline
    P Offline
    parths
    wrote on last edited by
    #1

    Hi, I need to get Unicode Values for characters of a Custom Font. can anyone point me to some resources? Thanks

    "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

    R 1 Reply Last reply
    0
    • P parths

      Hi, I need to get Unicode Values for characters of a Custom Font. can anyone point me to some resources? Thanks

      "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

      R Offline
      R Offline
      Robert A T Kaldy
      wrote on last edited by
      #2

      I don't know, what is a Custom font. But generally, if you want to convert characters from Windows-125* (depending of localization of the OS) to Unicode encoding, use mbstowcs() function. Robert-Antonio "Love, truth and electric traction must gain victory over hate, lie and diesel traction."

      P 1 Reply Last reply
      0
      • R Robert A T Kaldy

        I don't know, what is a Custom font. But generally, if you want to convert characters from Windows-125* (depending of localization of the OS) to Unicode encoding, use mbstowcs() function. Robert-Antonio "Love, truth and electric traction must gain victory over hate, lie and diesel traction."

        P Offline
        P Offline
        parths
        wrote on last edited by
        #3

        Thanks, I'll look that up.... What I meant by Custom font is an installed True Type font. I have to read some data from an Excel file and write it as XML. Now the excel file uses this TTF for Devnagari Script. It contains Hindi characters. I have to convert these into Unicode if they are to be shown correctly in the XML (Or is there another way?)

        "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

        R 1 Reply Last reply
        0
        • P parths

          Thanks, I'll look that up.... What I meant by Custom font is an installed True Type font. I have to read some data from an Excel file and write it as XML. Now the excel file uses this TTF for Devnagari Script. It contains Hindi characters. I have to convert these into Unicode if they are to be shown correctly in the XML (Or is there another way?)

          "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

          R Offline
          R Offline
          Robert A T Kaldy
          wrote on last edited by
          #4

          Do you have the Devangari charset in your Windows localization? Robert-Antonio "Friends come and leave, but teddybears stay in forever."

          P 1 Reply Last reply
          0
          • R Robert A T Kaldy

            Do you have the Devangari charset in your Windows localization? Robert-Antonio "Friends come and leave, but teddybears stay in forever."

            P Offline
            P Offline
            parths
            wrote on last edited by
            #5

            Yes I do

            "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

            R 1 Reply Last reply
            0
            • P parths

              Yes I do

              "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.

              R Offline
              R Offline
              Robert A T Kaldy
              wrote on last edited by
              #6

              So it's simple. If the Devangari charset is default on your system, use mbstowcs. When not, use MultiByteToWideChar, where you supply the Devangari charset codepage number. See MSDN for details about these functions. Robert-Antonio

              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