About ASCII extended code

I just found two different ASCII code table, I am asking the following:

1: How many ASCII extended table are there?

2: Where can I find them?

Thanks)
The term "Extended ASCII" is a bit imprecise. The ASCII standard was never extended. I think most of the time it refers to ISO 8859-1 or Windows-1252 but it could refer to any 8-bit character encoding that is compatible with ASCII.

https://en.wikipedia.org/wiki/Extended_ASCII
https://en.wikipedia.org/wiki/ISO/IEC_8859-1
https://en.wikipedia.org/wiki/Windows-1252
Last edited on
The term "Extended ASCII" is a bit imprecise.
Thanks @peter for correcting me, and funny story, all the links you gave are all visited. I do not know how I am gonna tackle this issue, but this may help.

In this link https://www.asciitable.com/ , the table labeled as" Extended ASCII Codes" is exactly what I have when I print all my 256, I think those are different from Windows-1252 and and iso 8859-1.

is there a name in the link I provide
The image says "Source: www.LookupTables.com" so I looked it up.

https://www.lookuptables.com/text/extended-ascii-table
Below is the CP437 (Code Page 437) version which was present on the original IBM PC, based on characters used in Wang word processing machines.
so I looked it up.
Genius, I need to learn some looking up too)

I am encountering only one problem, I cannot get the control character to be output like the one in this link: https://en.wikipedia.org/wiki/Code_page_437

Edit:
I tried SetConsoleOutputCP(437); but without any solution.

Note: this topic is derived one from: https://legacy.cplusplus.com/forum/beginner/284876/
Other Note: the topic is not closed yet, I am still doing some reading
Last edited on
The Windows-specific details are not really my area of expertise. Perhaps someone can chip in.
Last edited on
Well then I am the most thankful for your concerns.

I am also posting this issue in stackovercrap.com(pardon the expression), I hope to get help from there
command chcp will show the active console code page
chcp nnn will set the active console code page to that specified

For my Windows 7, the default active code page is 850

chcp 437
will change it to page 437
First thanks for the command, first time I know that

Is shows 437)

I still do not get the smiley face when I run std::cout << char(1) << std::endl;

From stackoverflow this is one comment that gives a bit of information

I don't think modern console fonts really care about the IBM PC code page anymore. At least, not those special glyphs for control characters.
With 437 as the active code page, this will display the smiley:

1
2
3
4
5
#include <iostream>

int main() {
	std::cout << char(1);
}



Last edited on
I think what you're discussing here is when running the program from the Windows Command Prompt (cmd.exe). If the output gets displayed inside an IDE it might perhaps work differently?
Last edited on
This is my output in both cmd with @seeplus command and my code to output all ascii character

https://ibb.co/jH1MS7q

1
2
for(int i=0;i<256;i++)
   cout << char(i) << ((i+1)%32?' ':'\n');


Clearly i do not get the character i wanted, even tho my cp is 437
Last edited on
Topic archived. No new replies allowed.