i have these in my ascii array
int ascii[]={'0','9','79','128','48','1','246','0','12','255','0','78','1','0','56','78','246','255','13','28','133','1','255','246','28','127','33','94','199','8','255','94','99','255','16','161','56','198','255','161','9','254','128','226','122','114','255','9','1','254','0','12','1','0','227','0','0','8','128','78','1','48','246','0'};
but while converting them to character
for(int i=0;i<64;i++){
char c2 = (char) ascii[i];
ciphdata = ciphdata + c2;
}
i get result as 84 bit characters
"**the problem is with array values it doesn't display character values between 0-32 ascii range values**"
please help me out of this
ssss December 12, 2011 at 4:55 PM
Nice Program on ascii
java shiva narayana August 11, 2012 at 2:27 PM
i have these in my ascii array int ascii[]={'0','9','79','128','48','1','246','0','12','255','0','78','1','0','56','78','246','255','13','28','133','1','255','246','28','127','33','94','199','8','255','94','99','255','16','161','56','198','255','161','9','254','128','226','122','114','255','9','1','254','0','12','1','0','227','0','0','8','128','78','1','48','246','0'}; but while converting them to character for(int i=0;i<64;i++){ char c2 = (char) ascii[i]; ciphdata = ciphdata + c2; } i get result as 84 bit characters "**the problem is with array values it doesn't display character values between 0-32 ascii range values**" please help me out of this
javashiva narayana August 11, 2012 at 2:29 PM
what about conversion of ascii to character if ascii= ( 0 - 32 ) range then we dont get any output please help me out!
Post your Comment