display non-ascii characters in DOS window

S

SB

Hi, I'd like to display some non-ascii characters in a DOS window. I'm
getting the characters from Windows Character Map, such as the Spade
(U+2660) and a few others. However, I can't get it to work. I know the
characters I'm trying to display are Unicode and that is presenting the
problem. Does anyone know how to do this if even possible?

Thanks!
 
V

Victor Bazarov

SB said:
Hi, I'd like to display some non-ascii characters in a DOS window. I'm
getting the characters from Windows Character Map, such as the Spade
(U+2660) and a few others. However, I can't get it to work. I know the
characters I'm trying to display are Unicode and that is presenting the
problem. Does anyone know how to do this if even possible?

<offtopic>
DOS and Windows are two different platforms and, alas, they don't
share the extended ASCII character sets. You need to look them up
from the DOS documentation.
</offtopic>

Your question is better asked in a Windows programming newsgroup
(not that there are no people who know answer here). I recommend
comp.os.ms-windows.programmer.*
 
S

SB

I disagree. This is not a Windows programming question. I'm attempting to
display these characters in a DOS window. The only thing that Windows has to
do with the problem at all is that I'm copying the Unicode character out of
the character map app from the Windows OS. I'm asking how to display that
character in DOS/console window using c++.
 
W

White Wolf

SB said:
I disagree. This is not a Windows programming question. I'm attempting to
display these characters in a DOS window. The only thing that Windows
has to do with the problem at all is that I'm copying the Unicode
character out of the character map app from the Windows OS. I'm asking
how to display that character in DOS/console window using c++.

Your opinion does not change the fact that both the C and the C++ language
render most of the character set issues as well as international issues
implementation defined, therefore making them off-topic here. Post to a
Windows programming newsgroup.

--
WW aka Attila
:::
Technical support is how much a minute? Only one other industry charges
$3.99 a minute to talk to you, and at least you get some degree of
pleasure out of that!
 
M

Mike Wahler

SB said:
I disagree.

That is your prerogative.
This is not a Windows programming question.

You may not realize it, but yes it is.
I'm attempting to
display these characters in a DOS window.

DOS does not have 'windows'. The Microsoft Windows(tm) operating
system does. One 'window' it has is a 'simulation' of a DOS
'console' display.
The only thing that Windows has to
do with the problem at all is that I'm copying the Unicode character out of
the character map app from the Windows OS. I'm asking how to display that
character in DOS/console window using c++.

The means to do this is specific to your enviroment (if it
supports it at all) -- in this case Microsoft Windows (which
does have such support). The C++ language has absolutely no
support for what you're asking. The Windows operating system
does. www.msdn.microsoft.com has all the answers you need. The
C++ language has none.

BTW please don't top post.

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top