Why the ANSI characters don't work after 127 in C even when using an "unsigned char"? -
i'm trying printf ansi character bigger 127 using unsigned char. problem character wrong. example, if seek print character number 161 (¡) number 237 (í). why?
yeah, sorry. so, using codeblocks on windows 8.1 64 bit. code:
unsigned char uc = 160; ... printf("unsigned char considered': %c\n",uc); ...
i think mean doing this:
#include <stdio.h> int main () { unsigned char c = 160; printf ("the character %c\n",c); homecoming 0; }
how top bit set characters work depends on terminal emulation. if have utf-8 terminal, instance, expecting unicode sequences.
c
No comments:
Post a Comment