Re: ascii code and accents
you need to use single quotes around your characters, not double quotes.
'c' is a character, while "s" is a string (pointer to an array of characters).
-Sam
Re: ascii code and accents
Thanks Sam.
But I tried this
Code:
printf("%c, %s, %c, %i\n", 133, "Ã*", 'Ã*' , 'Ã*');
and the return is :
???
Re: ascii code and accents
i ran into a similiar problem and this is what I used.
Code:
char a='Ã*';
int j=(int)a;
int i=(int)a &0xFF;
printf(" %c = %d not %d \n",a,i,j);
and here is the output
Troy
Re: ascii code and accents