프로그램 사용/gcc
문자열에 escape 로 특수문자 넣기
구차니
2017. 6. 19. 22:10
"\x6E" 이런식으로 문자를 넣으면 되는데 연속으로 넣으면 에러날수도(?)
만약에
0xc0 À 를 넣으면
"\xC0" 인데
À1 을 출력하고 싶다고
"\xC01"을 넣으면 이상한 걸로 인식을 하거나 에러나기도 한다.
어떻게 해결 해야 하려나...
\nnnnote 1 | any | The byte whose numerical value is given by nnn interpreted as an octal number |
\xhh… | any | The byte whose numerical value is given by hh… interpreted as a hexadecimal number |
\enote 2 | 1B | escape character (some character sets) |
\Uhhhhhhhhnote 3 | none | Unicode code point where h is a hexadecimal digit |
\uhhhhnote 4 | none | Unicode code point below 10000 hexadecimal |