Is there any way to print Greek characters in C? I'm trying to print out the word "ΑΝΑΓΡΑΜΜΑΤΙΣΜΟΣ" with:
printf("ΑΝΑΓΡΑΜΜΑΤΙΣΜΟΣ");
but I get some random symbols as output in the console.
Is there any way to print Greek characters in C? I'm trying to print out the word "ΑΝΑΓΡΑΜΜΑΤΙΣΜΟΣ" with:
printf("ΑΝΑΓΡΑΜΜΑΤΙΣΜΟΣ");
but I get some random symbols as output in the console.
Set your console font to a Unicode TrueType font and emit the data using an "ANSI" mechanism (that's assuming Windows... ). For example this code prints γειά σου:
#include "windows.h"
int main()
{
SetConsoleOutputCP(1253); //"ANSI" Greek
printf("\xE3\xE5\xE9\xDC \xF3\xEF\xF5"); // encoded as windows-1253
return 0;
}