> 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.
> 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.
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
I've been having the same problem (õäöüšž)...Originally Posted by Tropicalia
"The Internet treats censorship as damage and routes around it." - John Gilmore