Thread: Characters like in DOS

  1. #16
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    > Is possible to somehow write those special characters in DOS?
    That depends whether you mean DOS or win32 console.
    It also depends to some extent on your compiler.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  2. #17
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    The main problem is that the Win32 console uses a different character set than everything else. For example, on a typical German installation, the system ANSI codepage is Windows-1252, a slight variant of ISO-8859-1, while the console ("OEM") codepage is probably IBM OEM 850, the same that was used in good ole DOS.

    Thus, if you type a string like "Rächer des überführten Spaßes" (ok, that's just nonsense) into your IDE's text editor as a string literal, it will look differently coming out in the console.

    wcout *should* do the correct translation from wide string literals, but I'm not sure if it actually does.
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #18
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Quote Originally Posted by Tropicalia
    Is possible to somehow write those special characters in DOS? (Sorry but i forgot the english name of them).
    Because in portuguese we use it a lot.
    I've been having the same problem (õäöüšž)...
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how many old school DOS programmers are left?
    By Waldo2k2 in forum A Brief History of
    Replies: 23
    Last Post: 02-01-2003, 04:14 PM
  2. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 08:08 PM
  3. extract characters to '.'
    By VanJay011379 in forum C++ Programming
    Replies: 5
    Last Post: 07-29-2002, 11:32 PM
  4. Crazy Characters?!
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 01-22-2002, 01:02 PM
  5. DOS Characters
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 12-29-2001, 01:08 PM
Website Security Test