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. Adding unicode character to char string ?

Adding unicode character to char string ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 3 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
    Samsung
    wrote on last edited by
    #1

    I have hexadecimal value of unicode character. How to add it to standard char string?

    C T 2 Replies Last reply
    0
    • S Samsung

      I have hexadecimal value of unicode character. How to add it to standard char string?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You can't, by definition. A unicode character is multibyte, a char string contains one byte per character. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

      1 Reply Last reply
      0
      • S Samsung

        I have hexadecimal value of unicode character. How to add it to standard char string?

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

        first Convert Them to Standard Char using wctomb and then add the resulting charater to regular char String


        "I Think this Will Help"  Alok Gupta
         visit me at http://www.thisisalok.tk

        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