Thread: Characters like á õ ü in DOS

  1. #16
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > 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
    Posts
    8,895
    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

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. Crazy Characters?!
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 01-22-2002, 02:02 PM
  4. DOS Characters
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 12-29-2001, 02:08 PM