Characters like in DOS

This is a discussion on Characters like in DOS within the C++ Programming forums, part of the General Programming Boards category; > Is possible to somehow write those special characters in DOS? That depends whether you mean DOS or win32 console. ...

  1. #16
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,848
    > 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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  2. #17
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    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!
    CornedBee

    "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
    Location
    Estonia
    Posts
    2,318
    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

Page 2 of 2 FirstFirst 12
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 Cprogramming.com
    Replies: 23
    Last Post: 02-01-2003, 05:14 PM
  2. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  3. extract characters to '.'
    By VanJay011379 in forum C++ Programming
    Replies: 5
    Last Post: 07-30-2002, 12:32 AM
  4. Crazy Characters?!
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 01-22-2002, 02:02 PM
  5. DOS Characters
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 12-29-2001, 02:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21