View Full Version : help! extended ascii table
godhand
09-29-2003, 04:42 AM
Hi, would anyone please tell me how can download the extended ascii table to my Debian linux? thanks
Hammer
09-29-2003, 05:28 AM
http://www.asciitable.com/
What exactly are you after?
Lynux-Penguin
09-29-2003, 04:57 PM
download an extended ascii table???
uh--
just run this:
#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;
}
and you can pipe it however you want.
there's your ascii table for whatever system you're on...
-LC
godhand
09-29-2003, 10:18 PM
it's just that when I try to do printf("%c", 128 or above) my system doesn't display the character.
Lynux-Penguin
09-30-2003, 01:36 AM
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:
if (!isprint(j))
printf("| %#x | %6d |\n+---+--------+\n",(char)j,j);
else
printf("| %c | %6d |\n+---+--------+\n",(char)j,j);
godhand
10-01-2003, 02:00 AM
The system is Debian.
kermit
10-07-2003, 05:20 PM
Is the extended ascii table something different than what you could view if you did
man ascii?
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.