Hi, would anyone please tell me how can download the extended ascii table to my Debian linux? thanks
Printable View
Hi, would anyone please tell me how can download the extended ascii table to my Debian linux? thanks
http://www.asciitable.com/
What exactly are you after?
download an extended ascii table???
uh--
just run this:
and you can pipe it however you want.Code:#include <stdio.h>
int main()
{
int j;
printf("+---+--------+\n| C | Code |\n+---+--------+\n");
for(j=0;j<256;j++)
printf("| %c | %6d |\n+---+--------+\n",(char)j,j);
return 0;
}
there's your ascii table for whatever system you're on...
-LC
it's just that when I try to do printf("%c", 128 or above) my system doesn't display the character.
what system?
I'm pretty sure it does display it, but its an escape sequence or something that you can't visibly see as a char.
BSD right?
-LC
>I'm pretty sure it does display it, but its an escape sequence or something that you can't visibly see as a char.
That's why you add the following clause:
Code:if (!isprint(j))
printf("| %#x | %6d |\n+---+--------+\n",(char)j,j);
else
printf("| %c | %6d |\n+---+--------+\n",(char)j,j);
The system is Debian.
Is the extended ascii table something different than what you could view if you did
man ascii?