#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void){ char *query = getenv("QUERY_STRING"); char body[] = ""; system("chcp 65001 > nul"); // 1251 - windows-1251, 65001 - utf-8 strcat(body, "вапвкап ап"); printf("%s%c%c\n%s", "Content-Type:text/html;charset=utf-8",13,10, body); getchar(); return 0; }