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. unicode to multibyte

unicode to multibyte

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

    can i convert unicode string to multibyte?

    A L D R E 5 Replies Last reply
    0
    • U User 589870

      can i convert unicode string to multibyte?

      A Offline
      A Offline
      Adam Roderick J
      wrote on last edited by
      #2

      I like to use WideCharToMultiByte[^]

      Величие не Бога может быть недооценена.

      1 Reply Last reply
      0
      • U User 589870

        can i convert unicode string to multibyte?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        or WideCharToMultiByte[^] ...

        txtspeak is the realm of 9 year old children, not developers. Christian Graus

        1 Reply Last reply
        0
        • U User 589870

          can i convert unicode string to multibyte?

          D Offline
          D Offline
          David Knechtges
          wrote on last edited by
          #4

          or wcstomb, or wcstombs

          1 Reply Last reply
          0
          • U User 589870

            can i convert unicode string to multibyte?

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #5

            or use ATL and MFC String conversion macros[^]

            “Follow your bliss.” – Joseph Campbell

            1 Reply Last reply
            0
            • U User 589870

              can i convert unicode string to multibyte?

              E Offline
              E Offline
              EverettJF
              wrote on last edited by
              #6

              or use like this:

              #include "StringA.h"
              #include "StringW.h"

              CStringW sTestW( L"Test" );
              CStringA sTestA( "Test" );

              // convert
              CStringW sConvertW = sTestA;
              CStringA sConvertA = sTestW;
              </pre>

              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