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. Other Discussions
  3. Clever Code
  4. Microsoft CRT doesn't support Unicode properly for console applications.

Microsoft CRT doesn't support Unicode properly for console applications.

Scheduled Pinned Locked Moved Clever Code
combeta-testinghelpquestioncode-review
22 Posts 6 Posters 4 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.
  • J Joe Woodbury

    Stephen Hewitt wrote:

    simple use WriteConsoleW function

    It seems you can't redirect output done with WriteConsoleW.

    Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

    S Offline
    S Offline
    Stephen Hewitt
    wrote on last edited by
    #21

    True, but it's easy enough to detect if the output handle (returned from the GetStdHandle API) is a console handle and to behave appropriately.

    Steve

    1 Reply Last reply
    0
    • J Joe Woodbury

      Stephen Hewitt wrote:

      simple use WriteConsoleW function

      It seems you can't redirect output done with WriteConsoleW.

      Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #22

      See here[^] for an example of how Microsoft already use the technique mentioned in my previous post.

      Steve

      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