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

Unicode

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
4 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
    Simon Poon
    wrote on last edited by
    #1

    How to convert "N" to unicode 004E ? CString n("N"); . . . Output: 004E Please help me!

    A 1 Reply Last reply
    0
    • S Simon Poon

      How to convert "N" to unicode 004E ? CString n("N"); . . . Output: 004E Please help me!

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      input a unicode string: L"N" Don't try it, just do it! ;-)

      S 1 Reply Last reply
      0
      • A Alexander M

        input a unicode string: L"N" Don't try it, just do it! ;-)

        S Offline
        S Offline
        Simon Poon
        wrote on last edited by
        #3

        How to convert "N" to unicode 004E ?

        U 1 Reply Last reply
        0
        • S Simon Poon

          How to convert "N" to unicode 004E ?

          U Offline
          U Offline
          usfesco
          wrote on last edited by
          #4

          for ANSI characters, the lower byte of its unicode representation is just the same as ASCII, while the higher byte is always 00. So, since 'N' in ASCII is 0x4E, Unicode 'N' is 0x004E (it might be 0x4E00, depending on big endian or little endian).

          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